This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: I'm a little bit confused...
On Fri, Aug 30, 2002 at 07:37:45PM +0100, Dave Pawson wrote:
> At 11:01 30/08/2002, Giuseppe Greco wrote:
> >Hi Bob,
> >
> >I have 3 questions about catalogs:
> >
> >1. When should I use PUBLIC identifiers
> > respectively SYSTEM identifiers?
>
> If you are always connected to the internet, its OK
> (but slower) to get them from the net.
>
> If not, then use public identifiers and a catalog
>
>
>
> >2. When my document starts like this:
> >
> > <?xml version='1.0'?>
> > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> > "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
> > <book>
> > ...
> > </book>
> >
> > ... what happens if I use a catalog like this?
> >
> > <!DOCTYPE catalog PUBLIC
> > "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
> > "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"
> > >
> >
> > <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
> > <group prefer="public" xml:base="/usr/share/sgml/docbook/xml-dtd/">
> > "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
> > uri="docbookx.dtd"/>
> > </group>
> > </catalog>
> >
> > Does the XML processor look in the catalog for an entry identified by
> > "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN", and then, if
> > that entry doesn't exist, look at "http://www.oasis-open.org
> > /committees/entity/release/1.0/catalog.dtd"?
>
>
> That's it. and if it is present, it gets it from where you specify
> in the catalog.
Except the example seems to be broken. I think the
first part of a <public> element was deleted?
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com