ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Fuller" <>
Subject RE: Selecting XML Parsers
Date Tue, 30 Dec 2003 17:38:24 GMT

> -----Original Message-----
> From: Jose Alberto Fernandez []
> Sent: 30 December 2003 13:25
> To:
> Subject: Selecting XML Parsers
> I am having a very hard time porting my build to 1.6.0.
> I would like to get some input on how I should address my problem,
> not sure if it is my problem or ANTs.
> I need to use Saxon for some of my XSLT transformations, since I am
> using
> specific features of it. However, Saxon comes with Aelfred XML parser
> which
> is non-validating. Which means that <xmlvalidate/> and <ejbjar/> for
> example
> cannot use them.
> In 1.5.x I solved this situation by having Saxon.jar outside of
> and passing it to <style/> in the classpath. That does not seem to
> in 1.6.0 since <style/> only uses the classpath to find the the Liason
> but the TRAX liason does not uses it to find the factories.
> If I put Saxon.jar in ant/lib. All tasks will start using Aelfred
> and will break. Even tasks that specify a classpath, they do not use
> to find the parsers.
> The main issue here seem to be that non of our tasks set the
> ContextClassLoader
> before calling the methods on the xml-apis. If the context classloader
> where set, one could control on a task by task basis what parsers,
> transformers,
> etc, to use. I think the basic problem is in JAXPUtils where non of
> methods
> allow passing a classloader. Had the methods allow a classloader, then
> they could
> have set the contextclassloader appropriatelly, before calling the
> XMLAPI library.
[Jim Fuller] 

Since v7.1 Saxon is not bound to Aelfred xml parser, and doesn't ship
with it, Saxon will use by default JVM parser if Aelfred is not on the
classpath...I am running v7.8 saxon with v1.6.0 Ant with no probs, so
not so sure that ContextClassLoader is the issue.

M. Kay most recent code is usually very stable, at least near production
quality and I have been using 7.1 and up with no probs with respect to
XSLT...though there are issues with XSLT 2.0 and the nascent XQUERY

What version of Saxon are you using ?

Cheers, Jim Fuller

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message