[
Lists Home |
Date Index |
Thread Index
]
So Schematron's
<rule context="tr"><assert test="count(td) <= ../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
|