- From: Stanley Guan <stanley.guan@oracle.com>
- Date: Thu, 8 May 2003 09:23:12 -0700
- To: "Winston Wongsosemito" <w.wongso@logan.nl>, <xmlschema-dev@w3.org>
- Message-ID: <138701c3157e$1f353870$c5b42382@us.oracle.com>
I got the following error when using my validator: In line 5 of mytest50.xml: LSX-00387: duplicate key "Picca" Which validator you're using? Thx, -Stanley ----- Original Message ----- From: Winston Wongsosemito To: xmlschema-dev@w3.org Sent: Wednesday, May 07, 2003 11:08 AM Subject: [xmlschema-dev] <none> Could someone plz help me with the following problem, I want to validate the xml where the picklist element have different value elements That means that the xml below should give an error while validating with the xsd scheme, but it still gives no error when I'm trying to do so... the XML document <validate xmlns="urn:API"> <xmldata> <picklist name="a1" description="B1" owner="6"> <value>Picca</value> <value>Picca</value> <value>Picca</value> </picklist> </xmldata> </validate> the XSD scheme <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:API" xmlns="urn:API" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="validate" type="validateType"/> <xs:complexType name="validateType"> <xs:sequence> <xs:element name="xmldata" type="xmldataType" minOccurs="1" maxOccurs="1"/> </xs:sequence> </xs:complexType> <xs:complexType name="xmldataType"> <xs:sequence> <xs:element name="picklist" minOccurs="1" maxOccurs="1"> <xs:complexType> <xs:sequence> <xs:element name="value" type="xs:string" minOccurs="1" maxOccurs="unbounded"/> </xs:sequence> <xs:attribute name="name" type="xs:string" use="required"/> <xs:attribute name="description" type="xs:string" use="required"/> <xs:attribute name="owner" type="xs:integer" use="required"/> </xs:complexType> <xs:unique name="uniqueVALUE"> <xs:selector xpath=".//value"/> <xs:field xpath="."/> </xs:unique> </xs:element> </xs:sequence> </xs:complexType> </xs:schema>
Received on Thursday, 8 May 2003 12:27:31 UTC