Skip to content

Conversation

@andreas-ibm
Copy link

When experimenting with stylesheets and bugs, I find I need to run the same stylesheet/xml through different engines to see what they do, with that in mind I've expanded the SimpleTransform sample program to take more arguments, so that I can e.g. run:

$JAVA_HOME/bin/java -cp $(ls -1 ~/Development/xalan-java/build/*.jar | tr '\n' ':') samples.SimpleTransform.SimpleTransform ~/test6.xsl ~/test6.xml test6-output.xml org.apache.xalan.xsltc.trax.TransformerFactoryImpl

to

  • take my selected Java
  • grab all the xalan jars on classpath
  • run the simpleTransform sample
  • take test6.xsl as the stylesheet to run (defaults to birds.xsl to ensure backwards compatibility)
  • take test6.xml as the input to drive the stylessheet (defaults to birds.xml to ensure backwards compatibility)
  • output to test6-output.xml (defaults to birds.out to ensure backwards compatibility)
  • use the org.apache.xalan.xsltc.trax.TransformerFactoryImpl to process the stylesheet/xml pair. Defaults to javax.xml.transform.TransformerFactory but uses forName instead of getInstance now...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant