"you want the catalog to resolve the stylesheet itself - I'm afraid this is not 
supported."

"it does not use the catalog when locating the documents to transform or the 
stylesheet itself."



Thank you, that's what I wanted to know.  I couldn't see it stated 
categorically in the docs.

I shall stop trying this approach and arrange to get the stylesheet passed in 
as a file-name.



Can I add this as a feature request ?



Saxon is able to do this, but it is run as a Java application so is able to do 
anything a Java app can do, in whatever way it wants to.

Enquiring on either the Xsl or DocBook list indicated that although Ant's xslt 
task can take a classpath parameter it is not possible to get it to use Saxon 
due to some other limitations within one or the other.





Regards,

Richard.







Richard Kerry
BNCS Engineer, SI SOL Telco & Media Vertical Practice
T: +44 (0)20 82259063
M: +44 (0)7812 325518
G300, Stadium House, Wood Lane, London, W12 7TA
richard.ke...@atos.net<https://webmail.siemens-it-solutions.com/owa/redir.aspx?C=9fb20d019e3e4cb99344d708709a3177&URL=mailto%3arichard.kerry%40atos.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 
transmitte
________________________________
From: Stefan Bodewig [bode...@apache.org]
Sent: 16 August 2013 19:48
To: user@ant.apache.org
Subject: Re: Use of XML Catalog with Ant (xslt task) - request for example


On 2013-08-14, Kerry, Richard wrote:

> I'm trying to get DocBook WebHelp building working, which uses Ant to
> control the various processes involved, in particular Xslt.  I would
> like to use Catalogs for resolving my XSL stylesheet locations, and
> have thus far been unable to make this work.

I haven't used xmlcatalogs myself so far, but I'm pretty sure others
have.  Late on in a different message you say you want the catalog to
resolve the stylesheet itself - I'm afraid this is not supported.

> By "can't get it to work" I mean it doesn't find the files I'm trying
> to reference via the catalog.  It doesn't show any messages indicating
> whether or not it is using the resolver, so I presume it isn't finding
> it.

The docs say Ant would log a warning if the resolver cannot be found.
"no message" indicates Ant doesn't try to use the catalog at all to me.

How (a build.xml snippet) are you trying catalogs to do what?

The <xslt> task only uses catalogs to resolve DTDs and entities inside
the XML documents - it does not use the catalog when locating the
documents to transform or the stylesheet itself.

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to