[xsd-users] Syntax supported

Boris Kolpackov boris at codesynthesis.com
Wed Sep 21 15:56:14 EDT 2005


Hi Vandi,

Vandi Verma <vandi at email.arc.nasa.gov> writes:

> From my preliminary test of xsd it appears that xsd does not allow
> groups of elements to be defined and named using "group" as in the XML
> schema fragment below:

xsd does support element groups. What you stumbled upon is a bug. A simple
work-around is to reorder your schema like this:

<xsd:group name="Lookup">
  <xsd:choice>
    <xsd:element ref="LookupWithFrequency"/>
    ....
  </xsd:choice>
</xsd:group>

<xsd:group name="NumericExpression">
  <xsd:choice>
    <xsd:group ref="Lookup"/>
    ...
  </xsd:choice>
</xsd:group>

This will be fixed in the next version of xsd. Also if you would like
I can send you a custom binary with this bug fixed (just let me know
which platforms/packages and if it is ok to send via email).


> From the email archive I gathered that it does not support unions,

That's correct. Though we can add support should there be substantial
interest.


Thanks for report this!
-boris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: Digital signature
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20050921/ac69cb79/attachment.pgp


More information about the xsd-users mailing list