473,480 Members | 4,827 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

List of xs:ID - what am I missing

1 New Member
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 2105

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

Similar topics

4
2134
by: Rob | last post by:
I've been working with a ss sheet to format the list of links for my nav. I swear it used to work in IE6 but, now...there's extra color to the right of the list. Any help appreciated!...
7
1716
by: Rohit Sharma | last post by:
Dear All, Save me....I am about to give up..... I have spent the last two days trying to get id() funcion to work with .NET XPath classes. Any pointers information on how this works and what...
0
1201
by: Giuseppe | last post by:
Hello, Here's a sample of a file.xsd and file.xml I wrote : File.xsd: <?xml version="1.0" encoding="utf-8" ?> <xs:schema id="LogErrori" targetNamespace="http://tempuri.org/LogErrori.xsd"...
3
8732
by: Patrick | last post by:
>Is it actually valid to have an XML document with 2 XML Elements having the same ID attribute? XML Spy seems to allow something like the following <?xml version="1.0" encoding="UTF-8"?>...
2
1541
by: VernonR | last post by:
I'm having problems getting the .NET 1.1 XSL transform to cross reference using ID / IDREF correctly. I have collapsed to a simple set of files to show the problem more clearly... The output...
3
9899
by: Eric Lilja | last post by:
Sorry for asking so many questions, but I've just started and need to get some things working so I can do the task that is before me. Consider this (validating) schema: <?xml version="1.0"?>...
0
1412
by: daldridge | last post by:
I don't know if what I want to do is possible or not, but I'd like to have an xs:key in my schema that constrains attributes directly in a document, as well as those in another document, included...
3
2249
by: Bubba | last post by:
Hi all, I've got an XSD file that I need to add support to for an optional ID attribute on elements. After many hours of tweaking all that I get to work in my XML file is: <Container...
3
2359
by: tddeffner | last post by:
I have a form i need to create that involves looping dropdowns in asp.net. The form sets a time in a open time and a close time dropdownlist for each weekday. So I need it to loop seven times. I...
0
6905
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7080
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6736
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6908
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5331
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4772
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4478
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2994
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
561
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.