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

idL082 (Microsoft test suite)

From: Stanley Guan <stanley.guan@oracle.com>
Date: Wed, 31 Jul 2002 17:02:07 -0700
Message-ID: <004501c238ee$ad50f0d0$c5b42382@us.oracle.com>
To: <xmlschema-dev@w3.org>
Hi,

Can someone explain why the following test is 
expected to be o.k.?

Thx,

-Stanley


idL082.xsd
----------------

<?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:t"/>
   <xs:field xpath="myNS:*"/>
   <xs:field xpath="myNS:col"/>
  </xs:key>
 </xs:element>
 <xs:element name="t" type="ttype"/>
 <xs:complexType name="ttype">
  <xs:sequence>
   <xs:element name="col" type="xs:string"/>
  </xs:sequence>
 </xs:complexType>
</xs:schema>


idL082.xml
----------------

<?xml version="1.0"?>
<myNS:root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="myNS.tempuri.org idL082.xsd" xmlns:myNS="myNS.tempuri.org">
 <myNS:t>
  <myNS:col> 1 </myNS:col>
 </myNS:t>
 <myNS:t>
  <myNS:col> 2 </myNS:col>
 </myNS:t>
 <myNS:t>
  <myNS:col> 3 </myNS:col>
 </myNS:t>
</myNS:root>
Received on Wednesday, 31 July 2002 20:03:48 UTC

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