469,913 Members | 1,947 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,913 developers. It's quick & easy.

List of xs:ID - what am I missing

1
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>
Feb 9 '06 #1
0 1946

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

4 posts views Thread by Rob | last post: by
7 posts views Thread by Rohit Sharma | last post: by
reply views Thread by Giuseppe | last post: by
3 posts views Thread by Patrick | last post: by
reply views Thread by daldridge | last post: by
3 posts views Thread by Bubba | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.