This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]