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


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

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

Subject: Re: [relax-ng] Re: MinOccurs in RELAX

Message text written by James Clark
I don't understand the difference between a "LIMIT constraint" and
min/maxOccurs.  Can you give an example of how this would be used with the
zeroOrMore/oneOrMore elements that we have now?


Having read your treatise on 'Why RELAX NG?' I'm not sure if this 
breaks all the rules - but here goes anyway :

  <define name="Components">
    <element name="Components">
      <ref name="attlist.Components"/>
      <oneOrMore limit="3">
        <ref name="Component"/>

  <define name="PermittedValues">
    <element name="PermittedValues">
      <ref name="attlist.PermittedValues"/>
        <ref name="DefaultValue"/>
        <ref name="ValueRule"/>
        <ref name="ExternalValueList"/>
        <zeroOrMore limit="10">
          <ref name="ValueItem"/>

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

Powered by eList eXpress LLC