[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: Use of XML Catalog with Ant (xslt task) - request for example (using for DocBook/WebHelp)
Ah, me not reading properly. No, the catalog is used for offline caching of files etc in the docbook source.
To clearify, you want to invoke the xslt task with a @style pointing to some URI, that the catalog would rewrite to some local file?
:: Morten Engelhardt Olsen
From: Kerry, Richard [email@example.com]
Sent: Friday, August 09, 2013 16:23
Subject: [docbook-apps] RE: Use of XML Catalog with Ant (xslt task) - request for example (using for DocBook/WebHelp)
I’m not convinced you’re doing what I want to do.
Your @style attribute includes a property which looks likely to be a directory name. This suggests you aren’t using the catalog to get the xsl file’s location.
You don’t show any reference to catalogManager.properties.
There is a comment in the Ant documentation about getting resolver.jar accessed via the classpath (or the path). You show nothing which addresses that. I suspect I’m not seeing any relevant behaviour in my system as I haven’t done that successfully.
In continue to get the error “stylesheet <name of my stylesheet> doesn’t exist” and no mention of catalog or resolver in the log (ie they are mentioned in that I’m assigning properties with them in the names, but there is no message to say they are or are not being found, or used.
We use the xslt task in ant with catalogs. The FO transformation consists of the following xslt task
Where, as you see we reference the DOCBOOK_XML_CATALOG defined as
Note that the manual dtd tags are for backward compliance with some of our legacy systems. The catalog files follow the default Oasis catalog structure. As the good eye will see our structure is inspired by how Oxygen lays out the catalog.
I’m trying to get DocBook WebHelp building working.
Although I do already have a working Ant build file based on the one from the DocBook stylesheet distribution I would like to use Catalogs for resolving my stylesheet locations, which the one provided doesn’t.
For my other target formats I’m using Saxon 6, via an Ant Java task. I have catalogs working for these as that’s taken care of by parameters passed to Saxon.
For WebHelp I’m using the Xslt task – that’s how the one in the stylesheet distribution is written, and it uses attributes like “if” and “_expression_” in its “param” elements, and I don’t know how to convert these to Java/Saxon.
I’ve tried to follow Ant’s documentation regarding the <xmlcatalog> element but I can’t get it to work. (I am finding the Ant documentation in this area extremely hard to follow)
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.
Does anyone have any complete example of this working.
Ie one that includes a reference to the resolver jar, and the classpath, and the catalog file and/or catalogManager.properties.
Alternatively – I think the only thing that blocked me from using Saxon was not knowing how to implement @_expression_ and @if, so if anyone can indicate how to do that for Java/Saxon I may revert to that option.
BNCS Engineer, SI SOL Telco & Media Vertical Practice
T: +44 (0)20 822 59063 (for the moment)
M: +44 (0)7812 325518
Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ (for the moment)