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

RE: Length facet illegal in restriction of list type

From: Antoli, Leo <Leo.Antoli@Misys.com>
Date: Mon, 15 Jan 2007 16:49:21 -0000
Message-ID: <8ADC468FAD0DD811ABE500065BFE3CDA05DBDFC3@pat.slough.midas-kapiti.com>
To: Michael Kay <mike@saxonica.com>, Nicholas.Ardlie@ga.gov.au, xmlschema-dev@w3.org
I'm still having the same error with However it's valid for Saxon
8.6 and XML Spy.

I'm defining:

      <xsd:complexType name="MyType">


                  <xsd:extension base="xsd:string">

                        <xsd:attributeGroup ref="myAttrb"/>





And then I try to use it but I get an error about the length facet:



                  <xsd:restriction base="MyType">

                        <xsd:length value="3"/>





The length facet is not applicable to types derived from



Leo Antoli



From: Michael Kay [mailto:mike@saxonica.com] 
Sent: 15 January 2007 10:05
To: Nicholas.Ardlie@ga.gov.au; xmlschema-dev@w3.org
Subject: RE: Length facet illegal in restriction of list type


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

http://www.saxonica.com/ <http://www.saxonica.com/> 



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"/>




This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person.       Misys Banking Systems is a trading name of Misys International Banking Systems Limited which is registered in England and Wales under company registration number 00971479 and with its registered office address at Burleigh House, Chapel Oak, Salford Priors, Evesham WR11 8SP.    THIS E-MAIL DOES NOT CONSTITUTE THE COMMENCEMENT OF LEGAL RELATIONS BETWEEN YOU AND MISYS INTERNATIONAL BANKING SYSTEMS LIMITED. PLEASE REFER TO THE EXECUTED CONTRACT BETWEEN YOU AND THE RELEVANT MEMBER OF THE MISYS GROUP FOR THE IDENTITY OF THE CONTRACTING PARTY WITH WHICH YOU ARE DEALING. 
Received on Monday, 15 January 2007 16:50:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:11 UTC