W3C home > Mailing lists > Public > public-schemata-users@w3.org > March 2007

Re: equivalent of NOT NULL for element values?

From: Lev Lvovsky <lists2@sonous.com>
Date: Tue, 13 Mar 2007 15:23:59 -0700
Message-Id: <50A012C4-53F2-4340-81BD-BD5BB3E7A4B6@sonous.com>
Cc: public-schemata-users@w3.org
To: mozer <xmlizer@gmail.com>


On Mar 13, 2007, at 3:14 PM, mozer wrote:

> what about using facet minLength in a restriction ?

I'd made the mistake of thinking that the validator would give the  
same error when integer fields where empty (which was my main  
concern).  I'd implemented the minLength restriction on strings, but  
had no solutions for integer types - shows you what testing can  
achieve ;).  Is there an all-type encompassing attribute which  
requires that an element have a value (regardless of whether that  
value then validates based on restrictions etc...)?

Thanks!
-lev
Received on Tuesday, 13 March 2007 22:24:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:16:24 GMT