W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2002

idL085 (Identity Constraint)

From: Stanley Guan <stanley.guan@oracle.com>
Date: Fri, 26 Jul 2002 11:16:00 -0700
Message-ID: <075f01c234d0$7efc96c0$c5b42382@us.oracle.com>
To: "Schema Interest Group" <w3c-xml-schema-ig@w3.org>, <xmlschema-dev@w3.org>
Hi,

Why the following test (i.e., idL085 - XPath Validation) on 
  http://www.w3.org/XML/2001/05/xmlschema-test-collection/result-ms-identityConstraint.htm

is expected to fail?

Can someone shed some lights on this?

Thx,

-Stanley

<?xml version="1.0" ?> 
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="myNS.tempuri.org" xmlns:myNS="myNS.tempuri.org" xmlns="myNS.tempuri.org">
- <xs:element name="root">
- <xs:complexType>
- <xs:sequence>
  <xs:element ref="t" maxOccurs="unbounded" /> 
  </xs:sequence>
  </xs:complexType>
- <xs:key id="foo123" name="tableu">
  <xs:selector xpath=".//myNS:*" /> 
  <xs:field xpath="@col" /> 
  <xs:field xpath="myNS:row" /> 
  </xs:key>
  </xs:element>
  <xs:element name="t" type="ttype" /> 
- <xs:complexType name="ttype">
- <xs:sequence>
  <xs:element name="row" type="xs:string" /> 
  </xs:sequence>
  <xs:attribute name="col" type="xs:string" /> 
  </xs:complexType>
  </xs:schema>


<?xml version="1.0" ?> 
- <myNS:root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="myNS.tempuri.org idL085.xsd" xmlns:myNS="myNS.tempuri.org">
- <myNS:t col="1">
  <myNS:row>1</myNS:row> 
  </myNS:t>
- <myNS:t col="2">
  <myNS:row>2</myNS:row> 
  </myNS:t>
- <myNS:t col="2">
  <myNS:row>11</myNS:row> 
  </myNS:t>
  </myNS:root>
Received on Friday, 26 July 2002 14:17:15 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:57 UTC