Re: [xml] bug in xmllint parsing of content model



  Hum, that's the second time in 24 hours that a content model
analysis problem is reported. There is something going on ...

Yes, it's all an ingenious plot designed to help decrease the ridicu-
lous commercialism associated with Valentine's Day (at least here in
the USA -- I don't know where you are) by keeping you busy so you
won't go out shopping.

Seriously, unless the other reporting party was S. Rahtz or L.
Burnard, I have nothing to do with it. (And even if it was, I didn't
realize they were reporting it, although perhaps I should have.)

And yes, I wrote the above rant just to align with my whine-about-
valentine's-day-packaging example described in previous mail.


  Hum, okay that looks like a serialization bug, annoying but should be
relatively easy to fix.

Glad to hear it; hope so.


  Hum, I didn't got the attachment, could you send test_xmllint.xml
again ?

Errrr, um ... sorry. I feel a bit silly having trouble attaching a
simple text document to mail (using vm 7.07 under Emacs 21.2.1, in
case anyone has any suggestions). I'll try again:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE test [
<!ELEMENT test ( box+ )>
<!ELEMENT box 
          (
            (box, filler*)+
          |
            (
              (gift, filler*)+,
              (box, filler*)*
            )
          )

<!ELEMENT gift (#PCDATA)>
<!ELEMENT filler EMPTY>
]>
<test>
  <box>
    <gift>Nothing to say.</gift>
  </box>
  <box>
    <box>
      <box>
        <gift>Yay!</gift>
        <filler/>
        <filler/>
        <box>
          <gift>Appears after a "gift".</gift>
        </box>
      </box>
    </box>
    <filler/>
    <filler/>
  </box>
</test>
(540) cushing ~/temp @ 22:37:37 ->xmllint --version
xmllint: using libxml version 20502
   compiled with: FTP HTTP HTML C14N Catalog DocBook XPath XPointer XInclude Iconv Unicode Regexps Automata 
(541) cushing ~/temp @ 22:37:41 ->xmllint --valid test_xmllint.xml 
not determinist
test_xmllint.xml:20: validity error: Content model of box is not determinist: ((box , filler*)+ | ((gift , 
filler*)+ , (box , filler*)*))
  </box>
       ^
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE test [
<!ELEMENT test (box)+>
<!ELEMENT box ((box , filler*)+ | ((gift , filler*)+ , box , filler**))>
<!ELEMENT gift (#PCDATA)>
<!ELEMENT filler EMPTY>
]>
<test>
  <box>
    <gift>Nothing to say.</gift>
  </box>
  <box>
    <box>
      <box>
        <gift>Yay!</gift>
        <filler/>
        <filler/>
        <box>
          <gift>Appears after a &quot;gift&quot;.</gift>
        </box>
      </box>
    </box>
    <filler/>
    <filler/>
  </box>
</test>
(542) cushing ~/temp @ 22:37:50 ->


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