On Fri, Jan 27, 2006 at 05:53:06PM -0800, Sean Machin wrote: > "parse2.c" from the example code. It failed with an error: > camera_test.xml:65: validity error : Content model of rule is not > determinist: ((input | (input , (operator , input)+)) , output+) > </rule> > > I'm using version 2.6.23. [...] > <!ELEMENT rule ( (input|(input,(operator,input)+)),output+) >
Violates the following: http://www.w3.org/TR/REC-xml/#sec-element-content "The content of an element matches a content model if and only if it is possible to trace out a path through the content model, obeying the sequence, choice, and repetition operators and matching each element in the content against an element type in the content model. For compatibility, it is an error if the content model allows an element to match more than one occurrence of an element type in the content model." http://www.w3.org/TR/REC-xml/#determinism is even clearer about the issue. The 'other tools' your reference are IMHO just not conformant to the specification. Rewriting that part of the DTD to (input, (operator,input)*, output+) should fix it trivially, it just shows that the person who wrote the DTD don't have much experience... Daniel -- Daniel Veillard | Red Hat http://redhat.com/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
