- From: <Noah_Mendelsohn@lotus.com>
- Date: Wed, 23 Aug 2000 20:15:36 -0400
- To: "Yuichi Koike" <koike@mmp.cl.nec.co.jp>
- Cc: xmlschema-dev@w3.org
If you have the instance document:
<A>
<B/>
</A>
there is an ambiguity as to whether B matches the first or the third line
of the content model for A. Therefore, the content model itself is
nondeterministic, as reported by XSV.
------------------------------------------------------------------------
Noah Mendelsohn Voice: 1-617-693-4036
Lotus Development Corp. Fax: 1-617-693-8676
One Rogers Street
Cambridge, MA 02142
------------------------------------------------------------------------
"Yuichi Koike" <koike@ay.jp.nec.com>
Sent by: xmlschema-dev-request@w3.org
08/23/00 06:50 PM
Please respond to "Yuichi Koike"
To: <xmlschema-dev@w3.org>
cc: (bcc: Noah Mendelsohn/CAM/Lotus)
Subject: Non-deterministic content model
When I validated a simple XML document [1] with a simple
schema [2], XSV gave me the following error message[3]:
""non-deterministic content model for type
None: {http://big.w3.org/dtd2xsd/test.xml}:B/
{http://big.w3.org/dtd2xsd/test.xml}:B"
[1] http://big.w3.org/dtd2xsd/test2.xml
[2] http://big.w3.org/dtd2xsd/test.xml
[3] http://www.w3.org/2000/06/webdata/xsv?docAddrs=http%3A%2F%2Fbig.w3.org%2Fdtd2xsd%2Ftest2.xml&style=text
It seems that the following definition is wrong.
However, I don't know why it is wrong.
Can anyone tell me why?
<element name='A'>
<complexType content='elementOnly'>
<element ref='test:B' minOccurs='0' maxOccurs='unbounded'/>
<element ref='test:C' minOccurs='0'/>
<element ref='test:B' minOccurs='0' maxOccurs='unbounded'/>
</complexType>
</element>
--
Yuichi Koike (koike@ay.jp.nec.com)
NEC Corporation
World Wide Web Consortium (W3C)
Technology and Society Domain
http://www.w3.org/People/Koike/
Received on Wednesday, 23 August 2000 20:18:04 UTC