[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: deterministic content model?
- From: "Christopher R. Maden" <crism@maden.org>
- To: xml-dev@lists.xml.org
- Date: Sun, 24 Jun 2001 23:48:31 -0700
At 23:51 24-06-2001, Gary Stephenson wrote:
>What about this one? ( from test ibm45v01.xml )
>
> <!ELEMENT unique. (b|(b,unique))>
>
>Is this non-deterministic? Does it matter whether the element is actually
>instantiated within the document (which in this particular case it is not.)
Yes, this is non-deterministic.
The unique element must start with a b - but which b was it, and then is a
unique required? There's no way to tell, and thus this model must be rejected.
The equivalent model (b, unique?), is deterministic.
-Chris
--
Christopher R. Maden, XML Consultant
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA