Re: [relax-ng] Re: RELAX NG 2.0 ideas

From
John Cowan <>
Date
2002-06-14T18:10:02+00:00
ID
Thread
Re: [relax-ng] Re: RELAX NG 2.0 ideas
David RR Webber - XMLGlobal scripsit:

> I prefer 
> 
>  <repeat occurs="*" limit="n">  
> 
> as fostering better more interoperable software.
> 
> Any time you introduced hardwired constriants the 
> potential exists for software failure in downstream systems
> that do not accommodate the values you are using.

And contrariwise: if you cannot specify hardwired constraints, you
may break rigid downstream systems that *know* that there are 28, 30,
or 31 days in a Gregorian month:

	element month {
		repeat 28 { day } | repeat 30 31 { day }
		}

-- 
John Cowan <>     http://www.reutershealth.com
I amar prestar aen, han mathon ne nen,    http://www.ccil.org/~cowan
han mathon ne chae, a han noston ne 'wilith.  --Galadriel, _LOTR:FOTR_