Altova Mailing List Archives


Re: XSD attribute question

From: "Han" <hp4444@------.---.----->
To: NULL
Date: 2/17/2005 4:50:00 PM
Standard schema will not do that as far as I know. elements instead of 
attributes are required for a <choice> block having <sequence>s.

-- 
Pohwan Han. Seoul. Have a nice day.
"porko" <porko@d...> wrote in message 
news:DDB8DA48-5156-4C4A-96B5-16B33BCBB8B3@m......
> Is it possible to specify that one or more *sets* of attributes are
> acceptible on a particular element?    In other words any of the following
> are valid:
>
> <elem attr1=""  attr2=""  attr3="" >
> <elem attr3=""  attr4=""  attr5="" >
>
> So that we're saying "attr1, attr2 and attr3" can appear together  OR
> "attr3, attr4 and attr5" can appear together - but anything else is 
> invalid.
>
> I've tried definining the various combinations in groups, but I can't see 
> a
> way to specify that one out of any of the groups should appear as 
> attributes.
>
> ? 

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.