Connecting Tech Pros Worldwide Forums | Help | Site Map

List of xs:ID - what am I missing

Newbie
 
Join Date: Feb 2006
Posts: 1
#1: Feb 9 '06
For reasons I rather not go into, I'm looking to generate a type of "list of xs:ID" think of of them as aliases

with XSV I can get round to acually entering a list but they are not recognised as ID just NMTOKENS and when I use them I get ID not declared

What am I missing?

I generated a little example using inline schemas, to show the issue. Don't even try to use XMLSpy
1) No inline support
2) will not cope with
Expand|Select|Wrap|Line Numbers
  1. <xs:simpleType>
  2.     <xs:list itemType="xs:ID"/>
  3. </xs:simpleType>
Any Ideas
Chris

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <arbitrarytag xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:noNamespaceSchemaLocation="#local">
  5. <xs:schema id="local">
  6. <xs:element name="root" >
  7.         <xs:complexType>
  8.             <xs:choice>
  9.                     <xs:element name="Node" >
  10.                         <xs:complexType>
  11.                             <xs:attribute name="In" type="xs:IDREFS" />
  12.                         </xs:complexType>
  13.                     </xs:element>
  14.             </xs:choice>
  15.             <xs:attribute name="In">
  16.                         <xs:simpleType>
  17.                 <xs:list itemType="xs:ID"/>
  18.             </xs:simpleType>
  19. </xs:attribute>
  20.         </xs:complexType>
  21. </xs:element>
  22. </xs:schema>
  23. <root In="CCG FRED">
  24.     <Node In="CCG FRED" />
  25. </root>
  26. </arbitrarytag>

Reply