[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC