XML Schema EDC, UPA and substitution groups

S

Soren Kuula

Hi,

Does anyone happen to know whether this is legal:

<complexType name= ...>
<choice>
<element ref="foo"/>
<element ref="bar"/>
</choice>
</complexType>

<!-- nice enough so far... -->

<element name="foo" type=... substitutionGroup="bar"/>

<element name="bar" type=.../>

Problem: If bar is susbsted by foo, then EDC is violated.... hehehe --

Wonder is this is explicitly prohibited somehow?

Also, does anyone know why they required that the type of foo be derived
from that of bar, and is it true that it must be in ONE or more steps
(not zero or more?)

Soren
 
S

Soren Kuula

Hi, thanks Priscilla

Priscilla said:
Yes, this is prohibited, by UPC and not EDC. It is discussed in:

Whoops, yes there is no EDC issue with that. UPC -- is that UPA ;) ?
It is _not_ true that it has to be at least one step. foo and bar can
have the same type.

Thought so .. ok I have a correction for my author friend on that one...

Soren
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,255
Members
46,852
Latest member
CarlaDowle

Latest Threads

Top