If you use xercesImpl.jar from Xerces-2.5.0 (or better, I use 2.6.2) and
Xalan-J version 2.5.1 (or later, I use 2.6.0) you can execute XALAN with a
command like (one line!):
java -cp %LOCALCLASSPATH% -Djava.endorsed.dirs=where_everXalanAndXercesAre
-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration
org.apache.xalan.xslt.Process -IN %1 -XSL %2 -OUT %3
where the bold -D parameter activates Xinclude.
The -Djava.endorsed.dirs parameter is to make sure you get the right versions
of Xalan and Xerces if you use a Java version 1.4.0 or better. Else you will
execute the included versions that don�t cater for Xinclude.
If you invoke FOP from java-code you have the option to start off with:
System.setProperty("org.apache.xerces.xni.parser.XMLParserConfiguration",
"org.apache.xerces.parsers.XIncludeParserConfiguration"));The -Djava.endorsed.dirs parameter should go here too. H�lsningar Lars Bjerges Team Verktyg * F�reningsSparbanken IT 105 34 Stockholm ( +46 (0)8 58 59 43 45 ( +46 (0)70 95 27 774 ________________________________ From: Stimpmania [mailto:[EMAIL PROTECTED] Sent: Thu 12/16/2004 12:19 AM To: [EMAIL PROTECTED] Subject: FOP and XInclude Hello, does anybody know if it is possible to use XInclude with FOP. Xerces supports a partial implementation of W3C XInclude since version 2.5. How can I use it with FOP? What I want to do is something like this: file a.xml <bill> <xi:include href="b.xml" xmlns:xi="http://www.w3.org/2001/XInclude" /> <customer> . . . </customer </bill file b.xml <supplier> . . . </supplier> file stylesheet.xsl <template match="bill"> <xsl:value-of="supplier"/> </template> Thanks in advance Jan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
<<winmail.dat>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
