W3C home > Mailing lists > Public > xmlschema-dev@w3.org > June 2001

Re: ASN.1 => XML Schema questions

From: Di Iorio, Matthew (ISS Atlanta) <MDiIorio@iss.net>
Date: Tue, 26 Jun 2001 10:48:03 -0400 (EDT)
Message-ID: <3FBC19360F5CD511B2CB00306E110B6E203371@msgatl07.iss.net>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
> Not quite -- the above definition is for (a|b)*, but I'm looking for
> definitions of the form (ab|ba)*.

It seems like something that should be really easy to do, but isn't.  The
following is what I have come up with for this case:

    <complexType name='LemurWidget'>
      <choice minOccurs='0' maxOccurs='unbounded'>
          <element name='foo' type='string' minOccurs='0'
          <element name='bar' type='string' minOccurs='0'

The above snippet should validate the following:


Matt Di Iorio                Software Engineer
mdiiorio@iss.net         Phone: (404) 236-2748
Internet Security Systems (http://www.iss.net)
Received on Wednesday, 27 June 2001 03:24:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:51 UTC