The DocBook XSL stylesheets are not written using XSLT 2.0. Since Saxon
9.0 is an implementation of XSLT 2.0, it is possible that there are some
compatibility problems with the DocBook XSLT 1.0 templates. Can you use
Saxon 6.5.5 instead? That's known to work.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]
----- Original Message -----
From: "Eric Johnson" <[EMAIL PROTECTED]>
To: "Tony Graham" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Friday, November 30, 2007 10:33 AM
Subject: Re: [docbook-apps] Ant XSLT task error
That worked, but Saxon 9 says it does not support chunking and barfs..
On Fri, 2007-11-30 at 17:20 +0000, Tony Graham wrote:
On Fri, Nov 30 2007 15:53:51 +0000, [EMAIL PROTECTED] wrote:
> That is great example of getting the catalog resolver to work with the
> XSLT task. Do any of the also include the XInclude support?
It's not strictly necessary to use your own CatalogManager.properties
when using the xslt task: I can no longer remember why I did that.
I typically take the easy way out and put both saxon.jar (or saxon8.jar,
or now saxon9.jar) and resolver.jar in Ant's lib directory so Ant can
find them without my having to set a classpath.
Looking at the Saxon 8.9 source code [1], the feature key to enable
XInclude processing is:
http://saxon.sf.net/feature/xinclude-aware
So, the (untested) way to do XInclude processing while letting Ant
handle catalogs would be:
<target name="convert.single" depends="init">
<xslt style="${stylesheet}"
in="in/${in}"
out="out/${out}"
extension=".xml"
force="true">
<factory name="net.sf.saxon.TransformerFactoryImpl">
<attribute name="http://saxon.sf.net/feature/xinclude-aware"
value="true"/>
</factory>
<xmlcatalog refid="catalog"/>
</xslt>
</target>
(It's been a while since I've set a boolean TransformerFactory attribute
value.)
Regards,
Tony Graham.
======================================================================
[EMAIL PROTECTED] http://www.menteithconsulting.com
Menteith Consulting Ltd Registered in Ireland - No. 428599
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
----------------------------------------------------------------------
Menteith Consulting -- Understanding how markup works
======================================================================
[1]
http://saxon.svn.sourceforge.net/viewvc/saxon/latest8.9/bj/net/sf/saxon/FeatureKeys.java?view=markup
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]