Skip to content

thomasleplus/xsl-transformations

XSL Transformations

A collection of XSLT files for all sorts of purposes.

Maven

Each transform has been tested with Saxon-HE for Java. 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.

KML

Sort Placemarks Alphabetically

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.

JSON

JSON to XML

json_to_xml.xsl converts JSON data to XML format using the XSLT 3.0 json-to-xml() function. The input JSON should be contained within a <data> element.

XML to JSON

xml_to_json.xsl converts XML documents to JSON format using the XSLT 3.0 xml-to-json() function with indentation enabled for readable output.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.

Security

Please read SECURITY.md for details on our security policy and how to report security vulnerabilities.

Code of Conduct

Please read CODE_OF_CONDUCT.md for details on our code of conduct.

License

This project is licensed under the terms of the LICENSE file.

About

A collection of XSLT files for all sorts of purposes.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •