Re: [xml] problem validating XML file with DTD

On Fri, 2006-01-27 at 17:53 -0800, Sean Machin wrote:

camera_test.xml:65: validity error : Content model of rule is not 
determinist: ((input | (input , (operator , input)+)) , output+)

Right -- it's not deterministic (the error message has a typo I think).

you cant have a situation when trying to match a content model in
which an element could be matched by more than one pattern at once,
so when you get to the "input" element, it can match on either side
of the "|" which is technically not allowed.

rewrite it as

input, (operator, input)*, output+


Liam Quin - XML Activity Lead, W3C,
Pictures from old books:

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