[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Saxon via Ant - Getting started


Subject: RE: [xsl] Saxon via Ant - Getting started
From: "Kerry, Richard" <richard.kerry@xxxxxxxx>
Date: Wed, 30 Jan 2013 13:28:50 +0000

(sorry, Mike's reply crossed with my follow-up with my example)

Thanks for the information Mike.  I'm using Saxon 6.5, which I think was
recommended to me as the one to use as DocBook is xsl 1, with possible
extensions (not sure about the extensions).
If you are recommending I use Saxon 9, even though it's xsl 1, I'm happy to
change.

And I shall therefore focus on using it via the <java> task.  When I've
changed to saxon 9 I'll let you all know what's happened with the "-x" error.


Appreciatvely,Richard.





Richard Kerry
BNCS Engineer
T: +44 (0)20 82259063
M: +44 (0)7812 325518
Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ
richard.kerry@xxxxxxxx
uk.atos.net

This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail in
error, please notify the sender immediately and destroy it. As its integrity
cannot be secured on the Internet, the Atos group liability cannot be
triggered for the message content. Although the sender endeavours to maintain
a computer virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted.

________________________________________
From: Michael Kay [mike@xxxxxxxxxxxx]
Sent: 30 January 2013 12:31
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Saxon via Ant - Getting started

We established recently that this doesn't work. When you use the <xslt>
task in Ant, it instantiates an XMLReader and constructs a SAXSource
containing this XMLReader; under these circumstances, Saxon will use the
XMLReader in the SAXSource in preference to the one nominated as the
SourceParserClass to Saxon. For 9.5 I've added yet-another configuration
option that will cause Saxon to ignore the supplied XMLReader and
substitute its own, but for the moment, I think you need to use the java
task rather than the xslt task.

I don't remember exactly when the -x option was introduced. You might be
using an old version of Saxon, or the wrong version of the
documentation. I would recommend using Saxon 9.x even when you are
running XSLT 1.0 stylesheets, unless they are dependent on Saxon
extensions that have not been maintained in the current product -- but I
don't think that's the case with the standard docbook stylesheets.

Michael Kay
Saxonica


On 30/01/2013 12:19, Kerry, Richard wrote:
>
> I've just started trying to use Ant to get some Docbook XSL processed via
Saxon 6. Previously I've been doing it using batch files, and could
successfully sun Saxon 6.5 with the catalog resolver, and get the results I
wanted.
>
> However, I seem to be having some problems getitng it to work in ant.
> Really I'm looking for a simple example of an ant <xslt> task showing the
reference to the Saxon and resolver jars, and the catalog manager folder (or
its .properties file).
>
>
> When I try doing it by calling Saxon from a <java> task I get a message
about it not understanding the -x option, so I thought I'd stick with the
<xslt> task as it is more specific.
>
>
> Regards,
> Richard.
>
>
>
> Richard Kerry
> BNCS Engineer
> T: +44 (0)20 82259063
> M: +44 (0)7812 325518
> Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ
>
> richard.kerry@xxxxxxxx
> uk.atos.net
> This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail in
error, please notify the sender immediately and destroy it. As its integrity
cannot be secured on the Internet, the Atos group liability cannot be
triggered for the message content. Although the sender endeavours to maintain
a computer virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages resulting
from any virus transmitted.


Current Thread
Keywords