OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: RE: [relax-ng-comment] How about a <range> tag?


Thanks for the suggestion. This is already on the docket for 2.0, so you are
on the right track.

Mike

> -----Original Message-----
> From: Daniel Prager [mailto:danielp@deakin.edu.au]
> Sent: Wednesday, September 11, 2002 7:06 PM
> To: relax-ng
> Subject: [relax-ng-comment] How about a <range> tag?
>
>
> Here's a suggestion for RELAX NG 2.0:
>
> How about a tag of the form
>
>     <range min="..." max="...">
>             [RELAX pattern]
>     </range>
>
> which would generalize these existing tags (range equivalents on right)
>
>     <optional>            <range min="0" max="1">
>     <zeroOrMore>     <range min="0" max="unbounded">
>     <oneOrMore>      <range min="1" max="unbounded">
>
> This would enable a  RELAX NG schema author to write
> (for example) the equivalent of
>
>     <xsd:element name="shortList">
>         <complexType>
>             <xsd:element name="item" minOccurs="0" maxOccurs="5">
>                 [snip]
>             </xsd:element>
>     </xsd:element>
>
> neatly as
>
>     <element name="shortList">
>         <range min="0" max="5">
>             <element name="item">
>                 [snip]
>             </element>
>         </range>
>     </element>
>
> or something like
>
>     element shortList { element item[0..5] {   [snip]   } }
>
> in the compact notation.
>
>
> Cheers
>
> Daniel
>
>
> --
> Dr Daniel Prager
> Research Fellow & Consultant
> Deakin University & Freelance
>
> Phone: +61 3 9251 7484
> Web: www.deakin.edu.au/~danielp
>
>
>
> ----------------------------------------------------------------
> To subscribe or unsubscribe from this elist use the subscription
> manager: <http://lists.oasis-open.org/ob/adm.pl>
>



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC