Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Question on XSD elements in groups

From: "Koray SAKIROGLU" <koray.sakiroglu@-----.--->
To: "Arshad Noor" <arshad.noor@----------.--->
Date: 6/23/2008 12:57:00 PM
Hello again, I answered your previous message and maybe it will help, there
is indeed an ambiguity for xml schema between your elements because they are
all declared globaly and xml schema does not know wether or not they can
appear more than once, or so I believe.

Whichever the reason, an easy fix would be to use, in this particular case,
local element declarations, for all said elements in your <xsd:choice> or at
least for either :
the two Symkey and SymkeyErreor element or
the element containing SymkeyWithSymkeyErrorGroup group

Hope it helps.

2008/6/22 Arshad Noor <arshad.noor@s...>:

>
> I have the following defined in an XSD:
>
>
> <xsd:element name="Symkey" type="ekmi:SymkeyType"/>
> <xsd:element name="SymkeyError" type="ekmi:SymkeyErrorType"/>
>
> <xsd:group name="SymkeyWithSymkeyErrorGroup">
>    <xsd:sequence>
>       <xsd:element ref="ekmi:Symkey"/>
>       <xsd:element ref="ekmi:SymkeyError"/>
>    </xsd:sequence>
> </xsd:group>
>
>
> I'm trying to define a complex type that has a choice
> of either the Symkey or the SymkeyError elements, or
> the above-defined group which includes both elements.
>
> However, the tool I'm using to build the schema keeps giving me the
> following error:
>
> Error: cos-nonambig: "http://docs.oasis-open.org/ekmi/2008/01":Symkey
> and "http://docs.oasis-open.org/ekmi/2008/01":Symkey (or elements from
> their substitution group) violate "Unique Particle Attribution". During
> validation against this schema, ambiguity would be created for those two
> particles.
>
> Since I can only have a Symkey, SymkeyError or a combination
> of both in the to-be-defined element, why does NB think there
> will be ambiguity?  How do I go about accomplishing what I
> want?  Thanks in advance.
>
> Arshad Noor
> StrongAuth, Inc.
>
>
>
>
>
>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent