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] | [List Home]


Subject: Re: [docbook-apps] basic catalog question


yeah - in essence, it's trying to evaluate itself which of course
doesn't work. I couldn't figure out any way to evaluate the xml in my
catalog file

Craig

On Wed, 2007-12-05 at 15:08 -0800, Bob Stayton wrote:
> Hi Craig,
> I'm also a little confused by your example.  You named your catalog file 
> "catalog.dtd", and you are trying to validate it against a DTD (as declared 
> in your DOCTYPE) also named "catalog.dtd".  Are those the same file?  If so, 
> that isn't the correct approach.  There is a DTD for XML catalogs available 
> from OASIS that defines the catalog elements, but it isn't clear that is 
> what you are using here.
> 
> BTW,
> 
> Bob Stayton
> Sagehill Enterprises
> bobs@sagehill.net
> 
> 
> ----- Original Message ----- 
> From: "Craig White" <craig@tobyhouse.com>
> To: "Docbook Apps" <docbook-apps@lists.oasis-open.org>
> Sent: Wednesday, December 05, 2007 2:30 PM
> Subject: [docbook-apps] basic catalog question
> 
> 
> > Still working through Docbook-XSL 4thEd...
> >
> > got everything but Xerces working (I'll leave this for another time or
> > maybe I don't need it) but I have read/re-read/re-read Chapter 5 on
> > Catalogs and I'm still not confident that I am grasping things.
> >
> > I'm trying to localize it for my own use...
> >
> > # cat catalog.dtd
> > <?xml version="1.0" ?>
> > <!DOCTYPE catalog
> >  PUBLIC "-//Toby House/DTD Entity Resolution XML Catalog V.09//EN"
> >  "http://srv1.tobyhouse.com/docbook/catalog.dtd"; >
> > <catalog xmlns="tobyhouse:names:tc:entity:xmlns:xml:catalog" >
> >  <group prefer="public" xml:base="file:///var/www/html/" >
> >    <public
> >      publicId="-//Toby House//DTD Docbook XML V4.5//EN"
> >      uri="docbook45/docbookx.dtd" />
> >    <system
> >      systemId="http://srv1.tobyhouse.com/docbook/xml/4.5/docbookx.dtd";
> >      uri="docbook/docbookx.dtd" />
> >    <system
> >      systemId="docbook4.5.dtd"
> >      uri="docbook45/docbookx.dtd" />
> >  </group>
> > </catalog>
> >
> > Does this make sense?
> >
> > I can't test it because...
> >
> > # xmllint --valid catalog.dtd
> > http://srv1.tobyhouse.com/docbook/catalog.dtd:1: parser error : Missing
> > encoding in text declaration
> > <?xml version="1.0" ?>
> >                    ^
> > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
> > error in the external subset
> > <!DOCTYPE catalog
> > ^
> > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
> > error in the external subset
> > <!DOCTYPE catalog
> > ^
> >
> > and without the space before the question mark, I got error...
> >
> > http://srv1.tobyhouse.com/docbook/catalog.dtd:1: parser error : Space
> > needed here
> > <?xml version="1.0"?>
> >                   ^
> > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
> > error in the external subset
> > <!DOCTYPE catalog
> > ^
> > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
> > error in the external subset
> > <!DOCTYPE catalog
> > ^
> >
> > I'm confused...
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
> >
> >
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
> 



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