S
Soren Kuula
Hi,
I'm using a catalog for my Docbook xsl transformation. I can see (by
having the resolver dump debug information) that the remapping of the
system identifier
<rewriteURI
uriStartString="http://docbook.sourceforge.net/release/xsl/current"
rewritePrefix="file:../docbook-xsl-1.62.4/"/>
works just fine. However, docbook.xsl refers to other xsl stylesheet
files as ../common/blahblah.xsl. The resolver (resolver-latest.jar for
Xalan/Saxon) seems to be presented RELATIVE URIs
(../common/blahblah.xsl, not
http://docbook.sourceforge.net/release/xsl/current/common/blahblah.xsl),
so the above rewrite doesn't have a chance, and entity loading goes over
the network (slow).
I have patched that with an ugly
<rewriteURI
uriStartString="../common"
rewritePrefix="file:///usr/docbook/docbook-xsl-1.62.4/common"/>
BUT .. the stuff in common again has mutual references: The resolver
traces e.g.:
resolveURI(xep.xsl)
resolveURI(xep.xsl)
Resolved URI: xep.xsl
http://docbook.sourceforge.net/release/xsl/current/fo/xep.xsl
... and I don't see a good way of remapping these to local files.
Im I missing a detail here ?
Or having buggy software ? Xalan is 2.5.2, running endorsed inder Java
1.4.2..
Soren
I'm using a catalog for my Docbook xsl transformation. I can see (by
having the resolver dump debug information) that the remapping of the
system identifier
<rewriteURI
uriStartString="http://docbook.sourceforge.net/release/xsl/current"
rewritePrefix="file:../docbook-xsl-1.62.4/"/>
works just fine. However, docbook.xsl refers to other xsl stylesheet
files as ../common/blahblah.xsl. The resolver (resolver-latest.jar for
Xalan/Saxon) seems to be presented RELATIVE URIs
(../common/blahblah.xsl, not
http://docbook.sourceforge.net/release/xsl/current/common/blahblah.xsl),
so the above rewrite doesn't have a chance, and entity loading goes over
the network (slow).
I have patched that with an ugly
<rewriteURI
uriStartString="../common"
rewritePrefix="file:///usr/docbook/docbook-xsl-1.62.4/common"/>
BUT .. the stuff in common again has mutual references: The resolver
traces e.g.:
resolveURI(xep.xsl)
resolveURI(xep.xsl)
Resolved URI: xep.xsl
http://docbook.sourceforge.net/release/xsl/current/fo/xep.xsl
... and I don't see a good way of remapping these to local files.
Im I missing a detail here ?
Or having buggy software ? Xalan is 2.5.2, running endorsed inder Java
1.4.2..
Soren