| From | Sent On | Attachments |
|---|---|---|
| Elliotte Harold | Aug 9, 2006 7:20 am | |
| Elliotte Harold | Aug 9, 2006 12:01 pm | |
| Bob Stayton | Aug 9, 2006 4:01 pm | |
| Elliotte Harold | Aug 9, 2006 4:39 pm | |
| Bob Stayton | Aug 9, 2006 4:51 pm | |
| Elliotte Harold | Aug 9, 2006 4:54 pm | |
| Elliotte Harold | Aug 9, 2006 5:00 pm | |
| Bob Stayton | Aug 9, 2006 5:43 pm | |
| Elliotte Harold | Aug 10, 2006 3:21 am | |
| Camille Bégnis | Aug 10, 2006 7:25 am |
| Subject: | Re: [docbook] imagedata EMPTY | |
|---|---|---|
| From: | Bob Stayton (bo...@sagehill.net) | |
| Date: | Aug 9, 2006 5:43:37 pm | |
| List: | org.oasis-open.lists.docbook | |
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 bo...@sagehill.net
----- Original Message ----- From: "Elliotte Harold" <elh...@metalab.unc.edu> To: "Bob Stayton" <bo...@sagehill.net> Cc: <docb...@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 elh...@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/





