[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] imagedata EMPTY
Hi Elliotte, If that isn't a typo in your error example, then xmllint is saying the content of imagedata starts with "mageobject>" and contains an <imagedata> element? Normally xmllint's "got" message says what it found in the element. 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 4:40 PM Subject: Re: [docbook] imagedata EMPTY > Bob Stayton wrote: >> Hi Elliotte, >> That is a strange error message, especially since your imagedata looks >> ok to me. Which version of DocBook are you validating against? Since >> you have an <alt> in your mediaobject, I presume it is DocBook 5. When >> I cut and pasted your sample para into a DocBook 5 document, the >> document validated in xmllint 2.6.23. > > Yes, it is indeed DocBook 5; and it is strange. However I get very > similar messages from Xerces-J and xmllint, so I think it must be my bug: > > Java_Course_Notes.xml:32916: element imagedata: validity error : Element > imagedata content does not follow the DTD, expecting (info? , EMPTY), got > mageobject><imagedata fileref='awt.gif' width='107px' > depth='140px'></imagedata> > > [Error] Java_Course_Notes.xml:32916:201: The content of element type > "imagedata" is incomplete, it must match "(info?,EMPTY)". > > One thing I considered based on the error message was whether it could > possibly expect an element named EMPTY. But I can't see that in the DTD. > I even tried that, but as expected it wasn't valid. Adding an empty info > element didn't fix it either. > > I'm sure there must be some crucial mistake, but so far I can't find it. > I guess the next step is to boil my 500 page document down to a simple > test case. > > -- > 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]