OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: DOCBOOK-APPS: RE: XML catalog resolution problems

> -----Original Message-----
> From: Norman Walsh [mailto:ndw@nwalsh.com]
> Sent: Friday, October 25, 2002 7:07 PM
> To: Jeanson Mauritz
> Cc: docbook-apps@lists.oasis-open.org
> Subject: Re: XML catalog resolution problems
> Hash: SHA1
> / Jeanson Mauritz <mauritz.jeanson@aerotechtelub.se> was heard to say:
> | B. Resolution of stylesheet locations: works only if I
> |  1. use Saxon's -u flag,
> I'm offline, and I don't recall what "-u" means...

According to the Saxon documentation: "Indicates that the names of the 
source document and the style document are URLs; otherwise they are taken 
as filenames, unless they start with "http:" or "file:", in which case 
they are taken as URLs".

> |  2. use <uri> instead of <system> in the catalog file,
> Right. Stylesheet locations *are* general URIs, they aren't system
> identifiers.

Does that mean that <system> shouldn't be used for stylesheets in a
catalog file?

In Bob Stayton's catalog tutorial, this catalog has a <system> entry:

<?xml version="1.0"?>
<!DOCTYPE catalog
   PUBLIC "-//OASIS/DTD Entity Resolution XML Catalog V1.0//EN"

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">

Is this not correct? 

> |  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).
> The DTD location and the stylesheet location aren't related, so I'm
> confused.

Sorry if I caused any confusion.

If I omit the doctype declaration in my XML file, item 4 does not apply.
If I have a doctype declaration, I must use a public ID (since 
resolution of public IDs works), or a system  ID with the full DTD path
(since resolution of system IDs does not work). 

Mauritz Jeanson 

The ebxml-dev list is sponsored by OASIS.
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.ebxml.org/ob/adm.pl>

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC