473,810 Members | 3,102 Online
Bytes | Software Development & Data Engineering Community
+ 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 2132

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

Similar topics

4
2154
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! http://www.nczoo.org/test Rob
7
1735
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 the requirements are wil be helpful. I am using VB .NET. Thanks in advance. And I will owe you one...who ever answers this !
0
1230
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" elementFormDefault="qualified" ......... ......... <xs:sequence>
3
8745
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"?> <FormDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Forms.xsd"> <list id="1"> <status>partially completed</status> </list>
2
1565
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 line using MSXML4.0 is correct <Output>First List Item = Hello</Output> The output using MSXML3.0 or the DOTNET XSL transform is <Output> = </Output>
3
9932
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"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="myns" xmlns="myns" elementFormDefault="qualified"> <xs:element name="books"> <xs:complexType> <xs:sequence>
0
1440
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 in the first. Here's an example of what I'm trying to say: FooList.xsd: ================ <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xi="http://www.w3.org/2001/XInclude"
3
2264
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 id="CT"<!-- Valid ID declaration --> <Stuff id="CT-1">Foo Bar</Stuff<!-- Invalid ID declaration--> </Container>
3
2375
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 need to change the id for each of the dropdowns for my vbscript to add up the hours of the day. How can I get this work with asp:dropdownlist?
0
9722
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10379
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10393
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10124
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7664
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5550
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5690
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
3015
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.