An open API service indexing awesome lists of open source software.

https://github.com/thomasleplus/xsl-transformations

A collection of XSLT files for all sorts of purposes.
https://github.com/thomasleplus/xsl-transformations

java json kml saxon xml xsl xsl-transformations xslt-files

Last synced: about 2 months ago
JSON representation

A collection of XSLT files for all sorts of purposes.

Awesome Lists containing this project

README

        

# XSL Transformations

A collection of XSLT files for all sorts of purposes.

[![Maven](https://github.com/thomasleplus/xsl-transformations/workflows/Maven/badge.svg)](https://github.com/thomasleplus/xsl-transformations/actions?query=workflow:"Maven")
[![CodeQL](https://github.com/thomasleplus/xsl-transformations/workflows/CodeQL/badge.svg)](https://github.com/thomasleplus/xsl-transformations/actions?query=workflow:"CodeQL")

Each transform has been tested with [Saxon-HE for Java](http://www.saxonica.com/download/java.xml). You can run Saxon directly from the command line like this:

`java -jar Saxon-HE-10.0.jar -xsl:transform:.xsl -s:source.xml -o:output.xml`

Any other XSLT processor supporting XSLT 3.0 should work as well. If you want to test them online, you can use [XSLT Fiddle](https://xsltfiddle.liberty-development.net).

### KML

### Sort Placemarks Alphabetically

[kml_sort_placemarks_alphabetically.xsl](src/main/resources/xml/kml/kml_sort_placemarks_alphabetically.xsl) sorts the `Placemark` elements inside of a KML document in ascending alphabetical order. The `Folder` elements themselves are not reordered, only the `Placemark` elements inside each `Folder` element.