- From: Asir S Vedamuthu <asirv@webmethods.com>
- Date: Wed, 6 Nov 2002 08:33:41 -0500
- To: "Nell Golding" <nell_golding@hotmail.com>, <xmlschema-dev@w3.org>
Non-deterministic per XML 1.0, http://www.w3.org/TR/REC-xml#determinism 'cos, you content model in DTD syntax is ((Ack_Nack, Reason_Nack) | (Ack_Nack, Reason_Nack)). And, 'Reason_Nack' element decls within the content model must be of the same type. Asir -----Original Message----- From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org]On Behalf Of Nell Golding Sent: Wednesday, November 06, 2002 5:49 AM To: xmlschema-dev@w3.org Subject: deterministic or ambiguous? Hello, I have created a XML schema and a sample XML document. According to XMLSpy 4.4 the document seems to be valid and XML schema compliant to the W3C Specification. All other Tools (Topologi Schematron and Markup Editor, XML Schema Validator from Microsoft) that I used for validation reply that my schema is not deterministic. They report that there are multiple definitions of some element that cause content model to be ambiguous. I woud like to know, whether I make mistakes in schema definition and XMLSpy doesn't notice them, or these are bugs of the other tools. Here is a part of my schema that causes difficulties: <xs:element name="root"> <xs:complexType> <xs:choice> <xs:sequence> <xs:element name="Ack_Nack" type="xs:string" fixed="ACK"> <xs:annotation> <xs:documentation>Acknowledgement</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Reason_Nack" type="leer"/> </xs:sequence> <xs:sequence> <xs:element name="Ack_Nack" type="xs:string" fixed="NACK"> <xs:annotation> <xs:documentation>Rejection</xs:documentation> </xs:annotation> </xs:element> <xs:element name="Reason _Nack" type="Explanation_of_Nack" maxOccurs="unbounded"> <xs:annotation> <xs:documentation>Explanation to the rejection of the Templates</xs:documentation> </xs:annotation> </xs:element> </xs:sequence> </xs:choice> </xs:complexType> </xs:element> Regards, Nill Golding. _________________________________________________________________ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
Received on Wednesday, 6 November 2002 08:31:43 UTC