[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: [relax-ng] Re: 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> This doesn't make sense to me. I suppose the semantics of <max count="n"> p </max> is "p can be repeated up to n times" and similarly the semantics of <min> would be "p must be repeated at least n times." If so, it should be allowed to repeat <product> 20 times in the following example: > <min count="2"> > <max count="10"> > <element name="product"><text/></element> > </max> > </min> since that the outer <min> says is that you can repeat <product>*10 up to 2 times. I guess this is not what you want. So I think it needs to be something like <repeat min="n" max="m"> as we've discussed in the very early days of RELAX NG. regards, -- Kohsuke KAWAGUCHI Sun Microsystems kohsuke.kawaguchi@sun.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC