[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] imagedata EMPTY
OK, turns out this is a bug in the DTD version of DocBook 5.0, starting with b6 and included in b7. I should have noticed that this content model looked bogus: "(info?,EMPTY)" A content model is either EMPTY, or is has something optional. This should be just "(info?)". As written, it expects a required element named <EMPTY> but none is declared in the DTD. Could you please bug report this on the SourceForge site? Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Elliotte Harold" <elharo@metalab.unc.edu> To: "Bob Stayton" <bobs@sagehill.net> Cc: <docbook@lists.oasis-open.org> Sent: Wednesday, August 09, 2006 5:00 PM Subject: Re: [docbook] imagedata EMPTY > Here's an even simpler case that gives the same error message: > > ~/projects/workspace/cs905/build$ more testcase.xml > <?xml version='1.0' encoding='UTF-8'?> > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V5.0//EN" > "http://www.docbook.o > rg/xml/5.0b7/dtd/docbook.dtd"> > <book xmlns='http://docbook.org/ns/docbook' > > <chapter> > <mediaobject> > <imageobject> > <imagedata fileref="figures/eiffeltower.eps" /> > </imageobject> > </mediaobject> > </chapter> > </book> > ~/projects/workspace/cs905/build$ java -classpath > /opt/xml/xerces/xercesSamples.jar:/opt/xml/xerces/xercesImpl.jar > sax.Counter -v testcase.xml > [Error] testcase.xml:7:52: The content of element type "imagedata" is > incomplete, it must match "(info?,EMPTY)". > testcase.xml: 2715 ms (5 elems, 1 attrs, 21 spaces, 0 chars) > ~/projects/workspace/cs905/build$ > > > -- > Elliotte Rusty Harold elharo@metalab.unc.edu > Java I/O 2nd Edition Just Published! > http://www.cafeaulait.org/books/javaio2/ > http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/ > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]