This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: XML catalog resolution problems
- From: Jeanson Mauritz <mauritz dot jeanson at aerotechtelub dot se>
- To: Norman Walsh <ndw at nwalsh dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 31 Oct 2002 10:12:40 +0100
- Subject: DOCBOOK-APPS: RE: XML catalog resolution problems
> -----Original Message-----
> From: Norman Walsh [mailto:ndw@nwalsh.com]
> Sent: Friday, October 25, 2002 7:06 PM
> To: Jeanson Mauritz
> Cc: docbook-apps@lists.oasis-open.org
> Subject: Re: XML catalog resolution problems
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> / Jeanson Mauritz <mauritz.jeanson@aerotechtelub.se> was heard to say:
> | This is the current score:
> |
> | A. Resolution of system IDs: does not work at all.
> |
> | B. Resolution of stylesheet locations: works only if I
> | 1. use Saxon's -u flag,
> | 2. use <uri> instead of <system> in the catalog file,
> | 3. prepend the xml file name with "file:" on the command line, and
> | 4. use a system ID with full path to the DTD (or a public ID).
>
> That's very odd. Try turning up the "verbosity" of the resolver. A
> setting of 4 or more should produce a complete dump of everything it
> tried to do.
To reiterate, I can get transformations to work with Saxon provided I
fulfil conditions 1-3 above (leaving DTDs out of the discussion for now).
If this is how it is supposed to work, I am happy. But I haven't found
any reference spelling out that this is the case.
With this catalog:
<catalog
xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri
name="docbook.xsl"
uri="file:///c:/doctypes/docbook/xsl/html/docbook.xsl"/>
</catalog>,
I get a fairly large dump, with these first lines:
Parse catalog: catalog.xml
Loading catalog: catalog.xml
Default BASE: file:/C:/XMLtest/catalogs/test/Saxon/catalog.xml
uri: docbook.xsl
file:///c:/doctypes/docbook/xsl/html/docbook.xsl
URI: docbook.xsl
file:/c:/doctypes/docbook/xsl/html/docbook.xsl
resolveURI(file:kprof.xml)
Resolved URI: file:kprof.xml
file:kprof.xml
resolveURI(docbook.xsl)
Resolved URI: docbook.xsl
file:/c:/doctypes/docbook/xsl/html/docbook.xsl
resolveURI(../VERSION)
Resolved URI: ../VERSION
file:/c:/doctypes/docbook/xsl/VERSION
And the transformation works fine.
> Are you using "real" saxon or "instant" saxon?
"Real" Saxon.
/Mauritz