<?xml version="1.0" encoding="UTF-8"?> 
 <IDS2 xmlns = "http://www.w3.org/XQueryTest/ididrefs"
       xmlns:i = "http://www.w3.org/XQueryTest/ididrefs"
       xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation = "http://www.w3.org/XQueryTest/ididrefs id.xsd">

   <Element-with-ID-attribute id="alpha"><data>derived from Phoenician Aleph</data></Element-with-ID-attribute>
   <Element-with-ID-attribute id="beta"><data>derived from Phoenician Beth</data></Element-with-ID-attribute>
   <Element-with-Restricted-ID-attribute id="gamma"><data>derived from Phoenician Gimel</data></Element-with-Restricted-ID-attribute>
   <Element-with-Restricted-ID-attribute id="delta"><data>derived from Phoenician Daleth</data></Element-with-Restricted-ID-attribute>
   <Element-as-ID>epsilon</Element-as-ID>
   <Element-as-ID>zeta</Element-as-ID>
   <Element-as-Restricted-ID>eta</Element-as-Restricted-ID>
   <Element-as-Restricted-ID>theta</Element-as-Restricted-ID>
   <Element-with-ID-child><id>iota</id><data>Derived from Phoenician Yodh</data></Element-with-ID-child>
   <Element-with-ID-child><id>kappa</id><data>Derived from Phoenician Kaph</data></Element-with-ID-child>
   <Element-with-Restricted-ID-child><id>lambda</id><data>Derived from Phoenician Lamedh</data></Element-with-Restricted-ID-child>
   <Element-with-Restricted-ID-child><id>mu</id><data>Derived from Phoenician Mem</data></Element-with-Restricted-ID-child>
   <Element-with-complex-ID-child><id charmed="false">nu</id><data>Derived from Phoenician Nun</data></Element-with-complex-ID-child>
   <Element-with-ID-list-child><id>xi</id><data>Derived from Phoenician Samekh</data></Element-with-ID-list-child>
   <Element-with-ID-list-child><id>ping pong</id><data>not an id, as not a singleton value</data></Element-with-ID-list-child>
   <Element-with-ID-union-child><id>omicron</id><data>Derived from Phoenician Ayin</data></Element-with-ID-union-child>
   <Element-with-ID-union-child><id>853</id><data>Not an id, wrong member of union</data></Element-with-ID-union-child>
    
   <IDREF>zeta</IDREF>
   <IDREFS>gamma kappa</IDREFS>
   <IDREF-List>epsilon mu alpha</IDREF-List>
   <IDREF-Union>eta 234 delta</IDREF-Union>
   <Restricted-IDREF>iota</Restricted-IDREF>
   <List-of-Restricted-IDREF>lambda beta iota</List-of-Restricted-IDREF>
   
   <IDREF-content>zeta</IDREF-content>
   <IDREFS-content>gamma kappa</IDREFS-content>
   <IDREF-List-content>epsilon mu alpha</IDREF-List-content>
   <IDREF-Union-content>eta 234 delta</IDREF-Union-content>
   <Restricted-IDREF-content>iota</Restricted-IDREF-content>
   <List-of-Restricted-IDREF-content>lambda beta iota</List-of-Restricted-IDREF-content>
   
   <W i:IDREF="epsilon"/>
   <W i:IDREFS="delta eta"/>
   <W i:IDREF-List="zeta iota"/>
   <W i:IDREF-Union="gamma 976 delta alpha"/>
   <W i:Restricted-IDREF="beta"/>
   <W i:List-of-Restricted-IDREF="lambda kappa"/>
       
 </IDS2>