Catalog / Entity resolver question

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top