I found this article whilst searching for a way to get Saxon 9 to step in and take control of xslt transforms inside Ant tasks:
http://www.saxonica.com/documentation/using-xsl/xsltfromant.html
The method outlined by Michael Kay looked like it was written for the commercial version of Saxon (SA).
Here's what I did to get Saxon 9B (the sourceforge edition) to work inside an ant task:
<?xml version="1.0" encoding="UTF-8"?>
<project default="test-xslt2" basedir=".">
<target name="test-xslt2">
<taskdef name="saxon-xslt" classname="net.sf.saxon.ant.AntTransform" classpath="c:\lib\saxon9.jar;c:\lib\saxon9-ant.jar"/>
<saxon-xslt
in="your-xml-data.xml"
out="transformed-file.xhtml"
style="xsl-stylesheet.xsl"
force="true">
</saxon-xslt>
</target>
</project>
Tuesday, February 5, 2008
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2009
(23)
-
▼
June
(10)
- Daisy CMS - connecting a JMS listener to the repos...
- Daisy CMS - customising the footer of the editor p...
- Daisy CMS - allowing attributes in the SimpleDocum...
- JSF - ensuring your [xhtml] pages load with a text...
- Eclipse Galileo (3.5): Creating and running a JSF ...
- Using Eclipse Galileo to develop JSF applications ...
- SVN Web view - looking at older revisions
- Notes on setting up mod_proxy on apache 2.2 for pr...
- Addressing stability issues when running Eclipse 3...
- Forcing glassfish 2.1 to start-up with JDK1.6 (OSX...
-
►
April
(6)
- XSLT, text-transform:captialize and Excel workbook...
- Structure for Regular Expressions in Javascript
- SQL Server : Granting EXEC on Stored Procedures
- Eclipse : Save Actions for autoformatting code and...
- Eclipse : Display heap status (like IntelliJ IDEA)...
- Eclipse : Display Java Type Indicator for classes
-
▼
June
(10)
1 comments:
You might be interested in the eclipse XSL Tooling project which aims to add XSL support to the eclipse web tools project.
http://www.eclipse.org/webtools/incubator
Post a Comment