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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: Re: DOCBOOK: Problem with simplesect within section

On Fri, Aug 09, 2002 at 02:16:17PM +0200, Norbert Eicker wrote:
> Hi,
> taking the simplesect example from TDG and slightly modifying it I get:
> > cat test.xml
> <?xml version='1.0'?>
> <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
>           "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
> <section><title>Additional Coding</title>
> <para>
> Support for the additional features requested will be provided.
> </para>
> <simplesect><title>Estimated Time</title>
> <para>
> 2 to 3 weeks.
> </para>
> </simplesect>
> </section>
> Asking nsgml about the correctness of this file, I get:
> > nsgml -s xml.dcl test.xml
> nsgmls:test.xml:10:11:E: document type does not allow element "simplesect" 
> here
> The original example from TDG using sect1 instead of section works well.
> Is this an error on my side in understanding TDG or is it a problem within 
> DocBook?

This should work.
Support for simplesect in section was added in the DocBook
XML 4.2 DTD.  Simplesect has been supported in sect1 for
awhile.  When I test your file with the 4.2 DTD, it validates.
When I test it with 4.1.2, it fails.

I know your DOCTYPE is specifying the 4.2 DTD, but I also
know that at the moment the "http:" SYSTEM address is
broken on the OASIS site (the ent files appear to not
be there).  So it looks like your PUBLIC identifier is
being resolved to find the DTD.  Can you check your catalog
to make sure you are not getting the 4.1.2 DTD?
Can you check it by changing the system identifier to
point to a local copy of the 4.2 DTD?


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

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

Powered by eList eXpress LLC