[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] ant: was java 1.5 and xsltc and endorsed stuff.
Thanks Ian, David and Bob. Summary; below is an ant task that works with 1.4, latest. Works with both Saxon 653 and saxon 8 I've adopted Ians input, change paths and in, out properties as needed. This picks up saxon, I'm downloading 1.5, but it could be a while (I thought I'd left huge downloads behind with windows :-( I'll let you know how I get on with 1.5... if it ever finishes download! regards DaveP <?xml version="1.0" encoding="utf-8" ?> <project name="Saxon Transform" default="transform1" basedir="." > <property name="antHome" value="/myjava/ant"/> <property name="saxon6engine" value="com.icl.saxon.StyleSheet"/> <property name="saxon8engine" value="org.apache.xerces.parsers.SAXParser"/> <property name="xslfoEngine" value="com.renderx.xep.XSLDriver"/> <property name="saxon6Jar" value="/myjava/saxon653.jar"/> <property name="saxon8Jar" value="/myjava/saxon8.jar"/> <property name="xepJar" value="xep372_client.jar"/> <property name="processor" value="trax"/> <!-- --> <!-- File location properties --> <property name="srcDir" value="${basedir}"/> <property name="dstDir" value="/temp"/> <!-- output directory --> <property name="ss" value="/sgml/xsl"/><!-- Stylesheet directory --> <!-- Transform, XSLT 1.0 --> <!-- extension - of output file Not needed if you specify both in and out fully? --> <!-- in - file to process --> <!-- style - stylesheet --> <!-- out - output file required--> <target name="transform1" description="Transform using XSLT 1.0"> <echo> classpath = ${saxon6Jar} processor = ${processor} </echo> <xslt basedir="${srcdir}" destdir="${dstDir}" extension="xml" style="${ss}/witw.xsl" classpath="${saxon6Jar};${antHome}/lib/ant-trax.jar" processor="${processor}" in="witw.xml" out="op.html"> <param name="who" expression=".xml"/> </xslt> </target> <target name="transform2" description="Transform using XSLT 2.0"> <echo> Using Saxon8 classpath = ${saxon8Jar}:${antHome}/lib/ant-trax.jar processor = ${processor} </echo> <xslt basedir="${srcdir}" destdir="${dstDir}" extension="xml" style="witw.xsl" classpath="${saxon8Jar}:${antHome}/lib/ant-trax.jar" processor="trax" in="witw.xml" out="op.html"> <param name="who" expression=".xml"/> </xslt> </target> </project> Add Ian's <xsl:message> <xsl:value-of select="system-property('xsl:vendor')"/> </xsl:message> to the stylesheet, just to make sure! I'll try it with catalog support next.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]