[xml] xml bug?



Title: xml bug?

hello,

I am currently using xmllint (libxml version 20422) to parse XML
documents. Until recently I was very content with its trustability. But
I came across someting that seems to be a bug of xmllint. I am not sure
if this is the right place to report it. If it is not, I want to
apologize and ask wher I should report it then.

If it is, here is the description.

In my dtd, I have an element with defenition

<!ELEMENT  backm        (nawerk, inhopg? , (tekstpl | (bijlage |
notatoe)+)? , voetnoot*) >

Moreover, I have a lot of documents that confirm to the DTD (in fact,
they are validated SGML documents. I am converting the documents and the
DTD to XML). So there should be no reason for a parser to complain about
the structure.

But a lot of the documents give errors. The error log makes clear that
xmllint does a translation of the model group. Thereby making a mistake
(see the tekstpl - notatoe part):
Element backm content doesn't follow the DTD

Expecting (nawerk , inhopg? , (tekstpl | bijlage | notatoe+)? ,
voetnoot*), got (nawerk notatoe bijlage voetnoot voetnoot voetnoot
voetnoot voetnoot voetnoot voetnoot voetnoot voetnoot voetnoot voetnoot
voetnoot voetnoot voetnoot voetnoot voetnoot voetnoot voetnoot voetnoot
voetnoot voetnoot)



best regards, ruud grosmann



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]