[Home] [By Thread] [By Date] [Recent Entries]

  • From: Richard Tobin <richard@c...>
  • To: xml-dev@l...
  • Date: Tue, 17 Apr 2001 00:09:26 +0100 (BST)

> But getting the following error " Content Model is non - deterministic
> for Line Item" when I try to validate this dtd.

Content models must be deterministic in the sense that when the parser
encounters an element there must be only one branch of the content model
that it matches.

So instead of

 a|b|(a,b)

Use

 (a,b?)|b

or if you want to allow b,a too

 (a,b?)|(b,a?)

-- Richard



Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member