|
Project Information
Members
Links
|
Introductionjxsl goals are :
Simple API to run XSLT from Java codeApplying an XSL on XML content might be as simple as // Create a transformation scenario
XslScenario sc = new XslScenario("path_to_your_xsl.xsl");
// Run this scenario on XML content
Map<String, String> outputs = sc.apply("xml_content");
// Display transformation result
System.out.println(outputs.get(XslScenario.MAIN_OUTPUT_KEY));where:
XslScenario object lets you easily manage XSL parameters and multiple outputs. See XslScenario page for more information. XSL Unit testingOnce you have written XSpec test scenarios, jxsl allows you to quickly integrate them into your build or continous integration processes. jxsl comes with a Maven archetype to help you start quickly. Ant support is coming soon. To make it short:
mvn archetype:generate -DarchetypeGroupId=com.servicelibre -DarchetypeArtifactId=xspec-test -DarchetypeVersion=0.1.11 -DarchetypeCatalog=http://jxsl.googlecode.com/svn/trunk/archetypes mvn test mvn test For detailed setup instructions, read XslUnitTesting page. Happy XSL testing! |