RE: [relax-ng] RELAX NG 2.0 ideas

From
Michael Fitzgerald <>
Date
2002-06-14T16:53:53+00:00
ID
Thread
RE: [relax-ng] RELAX NG 2.0 ideas
<min count="3">
  <element name="product"><text/></element>
</min>

<max count="3">
  <element name="product"><text/></element>
</max>

<min count="2">
 <max count="10">
  <element name="product"><text/></element>
 </max>
</min>

<zeroOrMore>
 <max count="7">
  <element name="product"><text/></element>
 </max>
</zeroOrMore>

<oneOrMore>
 <max count="6">
  <element name="product"><text/></element>
 </max>
</oneOrMore>

Or...when we know the min:

<zeroOrMore max="7">
 <element name="product"><text/></element>
</zeroOrMore>

<oneOrMore max="7">
 <element name="product"><text/></element>
</oneOrMore>


James Clark wrote:
> 1. Repeat M-N times (issue 11); I think this is particularly useful with
> regexes, so if we add regexes along the lines that John C proposes, then I
> think the balance tips towards these