Created
July 24, 2012 10:14
-
-
Save eerohele/3169263 to your computer and use it in GitHub Desktop.
Run an XSL transformation on an XML file with Saxon (XSLT 2.0 compliant)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: PREREQUISITES: | |
:: DITA Open Toolkit must be installed and the DITA_HOME environment variable | |
:: must be correctly set. | |
:: USAGE: | |
:: saxon.bat stylesheet.xsl source.xml output.xml | |
set STYLESHEET=%1 | |
set SOURCE=%2 | |
set OUTPUT=%3 | |
java -cp %DITA_HOME%\lib\saxon\saxon9.jar;%DITA_HOME%\lib\resolver.jar ^ | |
-Dxml.catalog.files=%DITA_HOME%\catalog-dita.xml net.sf.saxon.Transform ^ | |
-r:org.apache.xml.resolver.tools.CatalogResolver ^ | |
-x:org.apache.xml.resolver.tools.ResolvingXMLReader ^ | |
-y:org.apache.xml.resolver.tools.ResolvingXMLReader ^ | |
-xsl:%STYLESHEET% -s:%SOURCE% -o:%OUTPUT% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment