[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: a or b or both - mystery..
- From: Richard Tobin <richard@cogsci.ed.ac.uk>
- To: xml-dev@lists.xml.org
- 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