Re: [xml-dev] How to redesign W3C XML Schema (Water Contract)

From
Rick Jelliffe <>
To
xml-dev <>
Date
2003-02-19T05:06:32Z
ID
<006301c2d7d4$ab0deb90$>
Thread
Re: [xml-dev] How to redesign W3C XML Schema (Water Contract)
So Schematron's

<rule context="tr"><assert test="count(td) &lt;= ../table/@cols"/></rule>

is more complex than Water's

<defclass table cols=rows.<max_length/> rows='from_content' />
<defmethod max_length>
 <maximum rest=rows.<for_each> value.<length/> </> />
</defmethod>
<defclass table cols rows='from_content'
   _precond=<assert> .cols.<more_or_equal rows.<max_length/> </>
/>

?

Cheers
Rick Jelliffe