Re: Fw: E0-23 Clarification and Schema for Schemas

"Stanley Guan" <stanley.guan@oracle.com> writes:

> Hi,
> 
> I think fixed="true" should be added in token's definition.  The fact that
> it's whitespace facet is fixed and cannot be changed should be enforced
> by schema constraints, not just WORDS.
> 
> <xs:simpleType name="token" id="token">
>   <xs:annotation>
>   <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#token" />
>   </xs:annotation>
>   <xs:restriction base="xs:normalizedString">
>     <xs:whiteSpace value="collapse" fixed="true" id="token.whiteSpace" />
>                                                       ^^^^^^^^^
>   </xs:restriction>
>   </xs:simpleType>

No additional enforcement is necessary -- no restriction of collapse
is possible, because there is no 'stronger' or more restrictive value.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                      Half-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
 [mail really from me _always_ has this .sig -- mail without it is forged spam]

Received on Thursday, 13 March 2003 04:16:40 UTC