Question about the 'length' - facet

Hi all,

I was wondering what the use is of the 'fixed'-attribute in the 'length' 
- facet. In the spec it says that:

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

Which lead to me to think that it would be possible to, when I set the 
fixed-attribute to false (its default value by the way) it would be 
possible to override the length-facet in derived types, but no because:

*Schema Component Constraint: length valid restriction*
It is an ·error· <http://www.w3.org/TR/xmlschema-2/#dt-error> if length 
<http://www.w3.org/TR/xmlschema-2/#dc-length> is among the members of 
{facets} <http://www.w3.org/TR/xmlschema-2/#defn-facets> of {base type 
definition} <http://www.w3.org/TR/xmlschema-2/#defn-basetype> and 
{value} <http://www.w3.org/TR/xmlschema-2/#length-value> is not equal to 
the {value} <http://www.w3.org/TR/xmlschema-2/#length-value> of the 
parent length <http://www.w3.org/TR/xmlschema-2/#dc-length>. (4.3.1.4 
XML Schema Part 2: Data Types)

Can maybe one of you guys shed some light on this?

Thanks a lot,

Mik

Received on Monday, 10 November 2003 08:23:35 UTC