473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

VS barks at this recursive schema

Can some one help me out here, VS doesn't like this schema ("SubSystem
is not defined"). Anyone know why?

<xs:complexType name="SystemType">
<xs:sequence maxOccurs="unbounded">
<xs:choice maxOccurs="unbounded">
<xs:element minOccurs="0" maxOccurs="unbounded"
name="SubSystem">
<xs:complexType>
<xs:sequence>
<xs:element ref="Operation" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="SubSystem" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="SubSystemId" />
<xs:attribute ref="SystemId" />
</xs:complexType>
</xs:element>
<xs:element ref="Operation" />
</xs:choice>
</xs:sequence>
<xs:attribute ref="SystemId" />
<xs:attribute ref="Name" />
</xs:complexType>

-KJ

Nov 12 '05 #1
4 869
Hello!
Can some one help me out here, VS doesn't like this schema ("SubSystem
is not defined"). Anyone know why?


Have you tried this? IIRC this works:

<xs:complexType name="SystemType">
<xs:sequence maxOccurs="unbounded">
<xs:choice maxOccurs="unbounded">
<xs:element ref="SubSystem" />
<xs:element ref="Operation" />
</xs:choice>
</xs:sequence>
<xs:attribute ref="SystemId" />
<xs:attribute ref="Name" />
</xs:complexType>

<xs:element minOccurs="0" maxOccurs="unbounded" name="SubSystem">
<xs:complexType>
<xs:sequence>
<xs:element ref="Operation" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="SubSystem" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute ref="SubSystemId" />
<xs:attribute ref="SystemId" />
</xs:complexType>
</xs:element>
--
Pascal Schmitt

Nov 12 '05 #2
Hi Pascal,

Yes that works and I thank you.

I am curious if it my XSD is breaking some composition rule in the
standard, or if this is a VS-only thing.

-KJ

Nov 12 '05 #3
Hello!
I am curious if it my XSD is breaking some composition rule in the
standard, or if this is a VS-only thing.


I don't know (there seems to be nothing written about...) but I guess it
has something to do with the scope of the definitions...

But it may also be a "VS thing" as Visual Studio does not understand all
of XSD.
--
Pascal Schmitt
Nov 12 '05 #4
Looks like a shortcoming of "russian doll" xsd design, not VS.

"Salami slice" style works fine.

A good article I found:

http://www.xfront.com/GlobalVersusLocal.html

-KJ

Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Bob | last post by:
Hi there, Need a little help with a certain query that's causing a lot of acid in my stomach... Have a table that stores sales measures for a given client. The sales measures are stored per...
2
by: kosaraju.puneeth | last post by:
hello, I need to represent recursive relationship in xml which will be validated by defined xml schema. example: check.xml <a> <testgroup name="first" result ="pass"> <testgroup...
25
by: Mike MacSween | last post by:
Regular viewers may want to turn off now. This will be an orchestral management system. Musicians and other staff being booked/paid for jobs. A job may contain other jobs, e.g: World Tour...
16
by: Indy | last post by:
Hi, I have a XHTML input file with custom tag which specifies html fragments to include For example: <html> .... <include frag1="frag1.html" frag2="frag2.html"> More html here </include>...
0
by: Derek | last post by:
I am creating an intranet using Visual Web Developer Express Edition. Everything has been working OK until yesterday when I started getting 62 messages all beginning "Could not find schema...
9
by: seberino | last post by:
I'm a compiler newbie and curious if Python grammar is able to be parsed by a recursive descent parser or if it requires a more powerful algorithm. Chris
0
by: Ultrus | last post by:
Hello XML gurus, After much reading, I made my first XML Schema! May I trouble you all for your thoughts? Perhaps there is a better way to go about it, or I did something totally wrong without...
10
by: AsheeG87 | last post by:
Hello Everyone! I have a linked list and am trying to include a recursive search. However, I am having trouble understanding how I would go about that. I don't quite understand a recursive...
1
by: indyanguy | last post by:
Hello, I am trying to create a XML schema to validate a XML document. The XML document has recursive <Section> elements (as shown below). Can someone help me create the XSD for the recursive part...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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,...
0
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...

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.