2.1.9 [W3C-XSD] Section 4.3.1.4, Constraints on length Schema Components

V0009:

The specification states:

 Schema Component Constraint: length and minLength or maxLength
  
 If length is a member of {facets} then 
 1 It is an error for minLength to be a member of {facets} unless 
 1.1 the {value} of minLength <= the {value} of length and
 1.2 there is type definition from which this one is derived by one or more restriction steps in which minLength has the same {value} and length is not specified.
 2 It is an error for maxLength to be a member of {facets} unless 
 2.1 the {value} of length <= the {value} of maxLength and
 2.2 there is type definition from which this one is derived by one or more restriction steps in which maxLength has the same {value} and length is not specified.

MSXML6

An error is reported when the length facet is a member of the {facets} set and either the minLength or maxLength facet is also a member of {facets}.

V0010:

The specification states:

 Schema Component Constraint: length valid restriction
  
 It is an ·error· if length is among the members of {facets} of {base type 
 definition} and {value} is not equal to the {value} of the parent length.

MSXML6

No error is reported if the length facet value is different from the value of the parent length facet, unless one of the length facet values is fixed.

Show: