idL082 (Microsoft test suite)

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