Restrictions on booleans

Hi,

xsd:boolean accepts the values "true", "false", "1", and "0". My reading 
of the spec would seem to indicate that the following is legal:

<restriction base='boolean'>
   <pattern value='true|false'/>
</restriction>

in order to model a language that has boolean types but only those two 
strings to flag truth (0 and 1 being illegal). My questions are: have I 
understood the spec correctly, and if so does that make much sense? It 
feels a bit strange having to use a pattern here, any reason why the 
equivalent enumeration isn't allowed?

Thanks,

-- 
Robin Berjon <robin.berjon@expway.fr>
Research Engineer, Expway
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488

Received on Thursday, 22 August 2002 09:38:26 UTC