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.
- Host: GitHub
- URL: https://github.com/thomasleplus/xsl-transformations
- Owner: thomasleplus
- License: apache-2.0
- Created: 2020-04-11T01:01:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-02T06:20:54.000Z (about 2 months ago)
- Last Synced: 2025-04-02T07:25:59.929Z (about 2 months ago)
- Topics: java, json, kml, saxon, xml, xsl, xsl-transformations, xslt-files
- Language: Java
- Homepage:
- Size: 724 KB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# XSL Transformations
A collection of XSLT files for all sorts of purposes.
[](https://github.com/thomasleplus/xsl-transformations/actions?query=workflow:"Maven")
[](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.