Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.