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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

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

[ Lists Home | Date Index | Thread Index ]


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




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS