You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Dhruva B. Reddy" <sl...@yahoo.com> on 2004/01/10 01:41:43 UTC
Default XSLT Processor?
Which XSLT processor does ANT use by default?
(I'm using 1.5.4 with Sun JDK 1.4.1)
Thanks,
Dhruva
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Default XSLT Processor?
Posted by Robert Koberg <ro...@koberg.com>.
Hi Jim,
Jim Fuller wrote:
>>JAVA_HOME/jre/lib/endorsed). There is probably also a way to use a
>>different processor by setting a system property, but I'm not
>>sure what
>>that property is??? BTW, if you use the endorsed override
>
>
> If anyone knows this property pls shout up, I suspect this is related to
> default JAXP setting
>
you want 'javax.xml.transform.TransformerFactory'
fwiw, for your parser you would use 'org.xml.sax.parser'
But, in ant (don't know about 1.6) I have had to use mtxslt:
http://mtxslt.sourceforge.net/
best,
-Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
RE: Default XSLT Processor?
Posted by Jim Fuller <ji...@ruminate.co.uk>.
> From: Jacob Kjome [mailto:hoju@visi.com]
> Subject: Re: Default XSLT Processor?
> At 04:41 PM 1/9/2004 -0800, you wrote:
> >Which XSLT processor does ANT use by default?
> JAVA_HOME/jre/lib/endorsed). There is probably also a way to use a
> different processor by setting a system property, but I'm not
> sure what
> that property is??? BTW, if you use the endorsed override
If anyone knows this property pls shout up, I suspect this is related to
default JAXP setting
Another method would be to use a macro-def or perhaps even better, to
use a presetdef
<presetdef name="saxon">
<xslt in="in.xml" out="out.xml"
style="style/apache.xsl"
processor="Saxon">
<outputproperty name="method" value="xml";/>
<outputproperty name="standalone" value="yes"/>
<outputproperty name="encoding" value="iso8859_1"/>
<outputproperty name="indent" value="yes"/>
</xslt>
</presetdef>
This has the added benefit of being able to define default values, as
well as overriding each attribute, as illustrated in the following
usage;
<saxon in="test.xml" out="test.xslt"/>
Cheers, Jim Fuller
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Default XSLT Processor?
Posted by Jacob Kjome <ho...@visi.com>.
At 04:41 PM 1/9/2004 -0800, you wrote:
>Which XSLT processor does ANT use by default?
>
>(I'm using 1.5.4 with Sun JDK 1.4.1)
JDK1.4.x includes an old version of Xalan. As such, the default parser
will be that old version of Xalan, unless you provide a newer one using the
endorsed override mechanism (put a new xalan.jar in
JAVA_HOME/jre/lib/endorsed). There is probably also a way to use a
different processor by setting a system property, but I'm not sure what
that property is??? BTW, if you use the endorsed override mechanism, I
suggest you use Xalan from the "2jars" distribution. The other one (which
is bigger) includes an old version of BCEL which can interfere with
applications that use newer versions of BCEL. This happened to me when
working with the "enhancer" Ant task provided by the Lido JDO
implementation from LIBeLIS. It reported a NoSuchMethodException until I
used the Xalan jar without BCEL. Oh, and BCEL is used in Xalan these days
for XSLTC. But you can provide BCEL separately on the classpath if you
want to work with that.
Jake
>Thanks,
>Dhruva
>
>__________________________________
>Do you Yahoo!?
>Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
>http://hotjobs.sweepstakes.yahoo.com/signingbonus
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org