Altova Mailing List Archives
>microsoft.public.xml Archive Home
>Thread Prev - XSD attribute question
Re: XSD attribute question
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. > > ?