Hi Craig,
The DTD for XML catalogs is available in the following HTML file, from which you can cut and paste the DTD text:

http://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html#a.dtd

Then you should be able to validate your XML catalog file. Of course, valid doesn't mean it will work. 8^)

Bob Stayton
Sagehill Enterprises
[EMAIL PROTECTED]


----- Original Message ----- From: "Craig White" <[EMAIL PROTECTED]>
To: "Docbook Apps" <[email protected]>
Sent: Wednesday, December 05, 2007 3:17 PM
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
[EMAIL PROTECTED]


----- Original Message ----- From: "Craig White" <[EMAIL PROTECTED]>
To: "Docbook Apps" <[email protected]>
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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to