W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2003

Re: [xmlschema-dev] <none>

From: Stanley Guan <stanley.guan@oracle.com>
Date: Thu, 8 May 2003 09:23:12 -0700
Message-ID: <138701c3157e$1f353870$c5b42382@us.oracle.com>
To: "Winston Wongsosemito" <w.wongso@logan.nl>, <xmlschema-dev@w3.org>
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?


  ----- 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">
     <picklist name="a1" description="B1" owner="6">


  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:element name="xmldata" type="xmldataType" minOccurs="1" maxOccurs="1"/>

  <xs:complexType name="xmldataType">
          <xs:element name="picklist" minOccurs="1" maxOccurs="1">
                    <xs:element name="value" type="xs:string" minOccurs="1" maxOccurs="unbounded"/>
                <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:unique name="uniqueVALUE">
                  <xs:selector xpath=".//value"/>
                  <xs:field xpath="."/>

Received on Thursday, 8 May 2003 12:27:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:11 UTC