W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2004

XS expressivity problem

From: Ciprian Ciubotariu <cheepeero@msn.com>
Date: Thu, 5 Aug 2004 12:52:53 +0300
To: xmlschema-dev@w3.org
Message-ID: <cesvu3$3pl$1@sea.gmane.org>

Hello.

I planned to use the following in a schema: inside an <choice> group having
several elements with the same name but different types. Can I write this in
a schema? I attached test.xsd as an example, and tes2.xml as a valid - imo -
document for test.xsd.

In fact, this translates to two different questions:

1. Is this construction allowed by the W3C schema specifications?
2. Is this construction implemented by any tools (validators etc.) I've
tried some validators, and they seem to fail, either silently by choosing
a wrong validation or by verbosely telling me that the schema is
non-deterministic etc. (which is not)

Thanks.

Cipi



begin 666 tes2.xml
M/#]X;6P@=F5R<VEO;CTB,2XP(B!E;F-O9&EN9STB551&+3@B/SX-"CPA+2U3
M86UP;&4@6$U,(&9I;&4@9V5N97)A=&5D(&)Y(%A-3%-062!V,C P-"!R96PN
M(#(@52 H:'1T<#HO+W=W=RYX;6QS<'DN8V]M*2TM/@T*/')O;W0@>&UL;G,Z
M>'-I/2)H='1P.B\O=W=W+G<S+F]R9R\R,# Q+UA-3%-C:&5M82UI;G-T86YC
M92(@>'-I.FYO3F%M97-P86-E4V-H96UA3&]C871I;VX](G1E<W0N>'-D(CX-
M"@D\=&5S=#X-"@D)/&)U8G4^5&5X=#PO8G5B=3X-"@D)/&-U8W4^87-D/"]C
9=6-U/@T*"3PO=&5S=#X-"CPO<F]O=#X-"@``
`
end

begin 666 test.xsd
M/#]X;6P@=F5R<VEO;CTB,2XP(B!E;F-O9&EN9STB551&+3@B/SX-"CQX<SIS
M8VAE;6$@>&UL;G,Z>',](FAT=' Z+R]W=W<N=S,N;W)G+S(P,#$O6$U,4V-H
M96UA(CX-"@D\>',Z96QE;65N="!N86UE/2)R;V]T(CX-"@D)/'AS.F%N;F]T
M871I;VX^#0H)"0D\>',Z9&]C=6UE;G1A=&EO;CY#;VUM96YT(&1E<V-R:6)I
M;F<@>6]U<B!R;V]T(&5L96UE;G0\+WAS.F1O8W5M96YT871I;VX^#0H)"3PO
M>',Z86YN;W1A=&EO;CX-"@D)/'AS.F-O;7!L97A4>7!E/@T*"0D)/'AS.F-H
M;VEC93X-"@D)"0D\>',Z96QE;65N="!N86UE/2)T97-T(B!T>7!E/2)B87-E
M(B\^#0H)"0D)/'AS.F5L96UE;G0@;F%M93TB=&5S="(@='EP93TB9&5R:79E
M9"(O/@T*"0D)/"]X<SIC:&]I8V4^#0H)"3PO>',Z8V]M<&QE>%1Y<&4^#0H)
M/"]X<SIE;&5M96YT/@T*"3QX<SIC;VUP;&5X5'EP92!N86UE/2)B87-E(CX-
M"@D)/'AS.F%L;#X-"@D)"3QX<SIE;&5M96YT(&YA;64](F)U8G4B+SX-"@D)
M/"]X<SIA;&P^#0H)/"]X<SIC;VUP;&5X5'EP93X-"@D\>',Z8V]M<&QE>%1Y
M<&4@;F%M93TB9&5R:79E9"(^#0H)"3QX<SIC;VUP;&5X0V]N=&5N=#X-"@D)
M"3QX<SIE>'1E;G-I;VX@8F%S93TB8F%S92(^#0H)"0D)/'AS.F%L;#X-"@D)
M"0D)/'AS.F5L96UE;G0@;F%M93TB8W5C=2(O/@T*"0D)"3PO>',Z86QL/@T*
M"0D)/"]X<SIE>'1E;G-I;VX^#0H)"3PO>',Z8V]M<&QE>$-O;G1E;G0^#0H)
A/"]X<SIC;VUP;&5X5'EP93X-"CPO>',Z<V-H96UA/@T*
`
end
Received on Thursday, 5 August 2004 06:39:28 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:10 UTC