docbook-apps

  • 1.  basic catalog question

    Posted 12-05-2007 22:31
    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

    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

    ^
    http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    error in the external subset
    ^
    http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    error in the external subset
    ^

    and without the space before the question mark, I got error...

    http://srv1.tobyhouse.com/docbook/catalog.dtd:1: parser error : Space
    needed here

    ^
    http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    error in the external subset
    ^
    http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    error in the external subset
    ^

    I'm confused...




  • 2.  Re: [docbook-apps] basic catalog question

    Posted 12-05-2007 23:08
    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
    >
    > > 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
    >
    > ^
    > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    > error in the external subset
    > > ^
    > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    > error in the external subset
    > > ^
    >
    > and without the space before the question mark, I got error...
    >
    > http://srv1.tobyhouse.com/docbook/catalog.dtd:1: parser error : Space
    > needed here
    >
    > ^
    > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    > error in the external subset
    > > ^
    > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    > error in the external subset
    > > ^
    >
    > 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
    >
    >
    >




  • 3.  Re: [docbook-apps] basic catalog question

    Posted 12-05-2007 23:17
    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
    > >
    > > > > 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
    > >
    > > ^
    > > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    > > error in the external subset
    > > > > ^
    > > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    > > error in the external subset
    > > > > ^
    > >
    > > and without the space before the question mark, I got error...
    > >
    > > http://srv1.tobyhouse.com/docbook/catalog.dtd:1: parser error : Space
    > > needed here
    > >
    > > ^
    > > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    > > error in the external subset
    > > > > ^
    > > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    > > error in the external subset
    > > > > ^
    > >
    > > 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
    >




  • 4.  Re: [docbook-apps] basic catalog question

    Posted 12-05-2007 23:44
    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
    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 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
    >> 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
    >> >
    >> > >> > 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
    >> >
    >> > ^
    >> > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    >> > error in the external subset
    >> > >> > ^
    >> > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    >> > error in the external subset
    >> > >> > ^
    >> >
    >> > and without the space before the question mark, I got error...
    >> >
    >> > http://srv1.tobyhouse.com/docbook/catalog.dtd:1: parser error : Space
    >> > needed here
    >> >
    >> > ^
    >> > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    >> > error in the external subset
    >> > >> > ^
    >> > http://srv1.tobyhouse.com/docbook/catalog.dtd:2: parser error : Content
    >> > error in the external subset
    >> > >> > ^
    >> >
    >> > 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
    >>
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >
    >