[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [Fwd: Re: [docbook-apps] xinclude question]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ok, here my answer to Markus.
I didn't look at the address line after pressing the answer button, sorry.
Stefan
- -------- Original-Nachricht --------
Betreff: Re: [docbook-apps] xinclude question
Datum: Mon, 21 May 2007 11:27:39 +0200
Von: Stefan Heuer <sh127@gmx.de>
An: Markus Innerebner <markus@innerebner.net>
Referenzen: <464DC95E.8040809@innerebner.net>
<acbec1a40705180859ne5cfd38v75adcfe4f09bf3a0@mail.gmail.com>
<acbec1a40705180900u42b833a6v53900b7e4063d8df@mail.gmail.com>
<464DD6D1.3070109@innerebner.net>
Hi Markus,
I use Saxon 6.5.5 (XSLT processor) together with Xerces 2.9.0 (XML
parser with XInclude feature). In ANT I declared an extra task:
<target name="my_xslt" description="own xslt task def">
<java classname="com.icl.saxon.StyleSheet" fork="true">
<classpath>
<pathelement path="saxon-6.5.5.jar" />
<pathelement path="xerces-xercesImpl-2.9.0.jar"/>
</classpath>
<jvmarg
line="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
- -
-
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
- -
-
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration"
/>
<arg line="-o ${output} ${input} ${stylesheet} ${params}" />
</java>
</target>
Later in the script you can use:
<target name="xslttransformation">
<antcall target="my_xslt" inheritall="true">
<param name="input" value="input.xml"/>
<param name="stylesheet" value="style.xsl"/>
<param name="output" value="output.fo"/>
<param name="params" value="${additional.parameters}"/>
</antcall>
</target>
Stefan
Markus Innerebner schrieb:
> Hi Chris
>
> thanks for the answer
>> (or you could use the equivalent command line structures in ant
>> without using the xslt task, this would make it easier to put in
>> your build file, but possibly more error prone)
> What do you mean with commandline structure?? Do you mean xslproc
> or what?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> docbook-apps-unsubscribe@lists.oasis-open.org For additional
> commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGUW4ZirQ0Ts08AdMRAmkIAKCM9QXBDKo5rOs8N99gMepLs1IKBACeORNk
B6tpyDYuXYKs9I5SgVMCL6E=
=7Glm
-----END PGP SIGNATURE-----
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]