473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Catalog / Entity resolver question

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/relea.../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/relea...ent/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

Jul 20 '05 #1
0 1213

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: peter greaves | last post by:
hi everyone i am having a bad time with an entity resolver. my application uses a resolver to locally-cache the nested schemas that the basic xsd includes to a local directory. however i am...
0
by: Steinar Bang | last post by:
Platform: Intel PII, debian sarge testing/unstable, Blackdown J2SDK 1.4.0.99beta-1, ant 1.5.3-1, libxerces2-java 2.4.0-1, libxalan-java 2.4.1-1 Is there a way to make the Xerces-J parser, used as...
2
by: Simon Strandgaard | last post by:
I am trying to understand how to create a 'catalog.xml' file for my docbook-xml documents. If I understand correct a local catalog.xml file can both avoid hardcoding in makefiles (portability),...
6
by: Vincent Lefevre | last post by:
I would like to know if the base URI considered to resolve an unparsed entity defined by a relative URI should be the URI before or after its rewriting due to a possible catalog. Let's take an...
4
by: Thomas Sommer | last post by:
Hi group, I am really desperate but I think I am missing only a minor part. Basically I want to pipe a global entity (the one you dereference with the &) through my dtd into the xml-file I am...
3
by: Vineeth | last post by:
Hi, I am developing an application using the SAX interface provided by "xerces-j 2.6.0". My application does not need a DTD for execution as it is not supposed to perform any validation. I have...
3
by: cochrane68 | last post by:
I'm trying to access an XML snippet based on the classpath. I know how to use a snippet based on the absolute path of a file using: <!DOCTYPE project > However, this is going to be used as...
1
by: Maansi Gupta | last post by:
Hello, I have a confusion regarding how the Parameterized and Predefined ENTITIES are resolved while parsing a DTD. Do we get events for the same or are they internally replaced and no events...
0
by: punjabinezzie | last post by:
I am developing an Application which currently has two XML files. One XML file with some nodes and an external entity reference to another XML file. The source XML file is being parsed using Xerces...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.