Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - >Thread Next - RE: Length facet illegal in restriction of list type Length facet illegal in restriction of list typeTo: <xmlschema-dev@--.---> Date: 1/16/2007 4:57:00 AM
The schema listed below contains a simplification of a construct found =
in the
GML 3.1.1 schemas.
Saxon-SA produces the following error message about the length facet:
"The length facet is not applicable to types derived from
codeAndTwoIntegersType_anonymous_type_2_at_line_7_of_ListTest1.xsd_36
Any pointers on why the length facet is illegal in this situation?
Regards,
Nick Ardlie.
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://ns1.com" =
xmlns:ns1="http://ns1.com">
<element name="codeAndInteger"
type="ns1:codeAndTwoIntegersType"/>
<complexType name="codeAndTwoIntegersType">
<simpleContent>
<restriction
base="ns1:codeAndIntegerListType">
<length value="2"/>
</restriction>
</simpleContent>
</complexType>
<complexType name="codeAndIntegerListType">
<simpleContent>
<extension base="ns1:integerList">
<attribute name="code"
type="anyURI" use="required"/>
</extension>
</simpleContent>
</complexType>
<simpleType name="integerList">
<list itemType="int"/>
</simpleType>
</schema>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
