W3C home > Mailing lists > Public > xmlschema-dev@w3.org > January 2007

RE: Length facet illegal in restriction of list type

From: Michael Kay <mike@saxonica.com>
Date: Mon, 15 Jan 2007 10:04:34 -0000
To: <Nicholas.Ardlie@ga.gov.au>, <xmlschema-dev@w3.org>
Message-ID: <007a01c7388c$8f5ef390$6401a8c0@turtle>
This appears to be a bug in Saxon-SA 8.8 which is fixed in the latest patch
release at
I haven't actually been able to identify which of the various reported bugs
causes the problem.
Michael Kay


From: xmlschema-dev-request@w3.org [mailto:xmlschema-dev-request@w3.org] On
Behalf Of Nicholas.Ardlie@ga.gov.au
Sent: 15 January 2007 06:57
To: xmlschema-dev@w3.org
Subject: Length facet illegal in restriction of list type


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


Any pointers on why the length facet is illegal in this situation?



Nick Ardlie.


<?xml version="1.0" encoding="UTF-8"?>

<schema xmlns:xs="http://www.w3.org/2001/XMLSchema"

            targetNamespace="http://ns1.com" xmlns:ns1="http://ns1.com">

            <element name="codeAndInteger"

            <complexType name="codeAndTwoIntegersType">



                                                <length value="2"/>




            <complexType name="codeAndIntegerListType">


                                    <extension base="ns1:integerList">

                                                <attribute name="code"
type="anyURI" use="required"/>




            <simpleType name="integerList">

                        <list itemType="int"/>



Received on Monday, 15 January 2007 10:05:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:39 UTC