471,337 Members | 1,178 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

How do I use uriSuffix/systemSuffix with XML catalogs?

I am using xml-commons-resolver-1.1 with java. I want to resolve
relative URIs, e.g.:

test

or in XSLT: document('test')

I have a catalog:

<?xml version="1.0"?>
<catalog
xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog "
xmlns:ext="http://nwalsh.com/xcatalog/1.0"
prefer="public">

<ext:systemSuffix suffix="test uri="data/test.xml"/>

</catalog>

If I use the resolver app:

java resolver -d 10 -c catalog.xml test system

the result is:

Cannot find CatalogManager.properties
Parse catalog: ./xcatalog
Loading catalog: ./xcatalog
Default BASE: file:D:/projects/ex1/xcatalog
Catalog does not exist: file:D:/projects/ex1/xcatalog
Parse catalog: catalog.xml
Loading catalog: catalog.xml
Default BASE: file:D:/projects/ex1/catalog.xml
override: yes
OVERRIDE: yes
Resolve SYSTEM (systemid):
system id: test
resolveSystem(test)
Result: null

If I change the catalog to use system instead of systemSuffix, it resolves.

Similarly, in java code, if I use CatalogResolver.getResolvedEntity(),
the result is null.

Is there something else that I need to do to get the
ExtendedCatalogResolver to be used?

Aug 19 '05 #1
0 884

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Steve Whitlatch | last post: by
81 posts views Thread by Michael Rozdoba | last post: by
reply views Thread by Tom Smith | last post: by
1 post views Thread by Jaime Casanova | last post: by
7 posts views Thread by Jean-Marc Blaise | last post: by
1 post views Thread by elein | last post: by
reply views Thread by Gerben Abbink | last post: by
reply views Thread by rosydwin | last post: by

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.