W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > April to June 2002

Fixed property in length facet is redundant

From: Tobbi <tobbi@systinet.com>
Date: Tue, 14 May 2002 18:31:29 -0700
Message-Id: <5.1.0.14.1.20020514183126.02a7e528@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
    Hi,
I'm writing own XML Schema part 2 Datatypes validator. But I'm confused 
because of "length" facet.

It's got a property "fixed". In REC it is said:

If <http://www.w3.org/TR/xmlschema-2/#length-fixed>{fixed} is true, then 
types for which the current type is the 
<http://www.w3.org/TR/xmlschema-2/#defn-basetype>{base type definition} 
cannot specify a value for 
<http://www.w3.org/TR/xmlschema-2/#dc-length>length other than 
<http://www.w3.org/TR/xmlschema-2/#length-value>{value}.

But then one constraint says:
Schema Component Constraint: length valid restriction
It is an 
<http://www.w3.org/TR/xmlschema-2/#dt-error>·error<http://www.w3.org/TR/xmlschema-2/#dt-error>· 
if <http://www.w3.org/TR/xmlschema-2/#dc-length>length is among the members 
of <http://www.w3.org/TR/xmlschema-2/#defn-facets>{facets} of 
<http://www.w3.org/TR/xmlschema-2/#defn-basetype>{base type definition} and 
<http://www.w3.org/TR/xmlschema-2/#length-value>{value} is not equal to the 
<http://www.w3.org/TR/xmlschema-2/#length-value>{value} of the parent 
<http://www.w3.org/TR/xmlschema-2/#dc-length>length.

It seems like redundance? Or is there any difference?

    Thanks, Tobbi
Received on Wednesday, 15 May 2002 02:39:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:00 GMT