Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Length facet illegal in restriction of list type

From: "Antoli, Leo" <Leo.Antoli@-----.--->
To: Michael Kay <mike@--------.--->, Nicholas.Ardlie@--.---.--, -------------@--.---
Date: 1/15/2007 4:49:00 PM
I'm still having the same error with 8.8.0.4. However it's valid for Saxon
8.6 and XMLSpy">XMLSpy.

I'm defining:

      <xsd:complexType name="MyType">

            <xsd:simpleContent>

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

                        <xsd:attributeGroup ref="myAttrb"/>

                  </xsd:extension>

            </xsd:simpleContent>

      </xsd:complexType>

 

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

      <xsd:complexType>

            <xsd:simpleContent>

                  <xsd:restriction base="MyType">

                        <xsd:length value="3"/>

                  </xsd:restriction>

            </xsd:simpleContent>

      </xsd:complexType>

 

The length facet is not applicable to types derived from
MyType_anonymous_type_7_at_line_14_of_MySchema.xsd_37

 

Regards,

Leo Antoli

 

  _____  

From: Michael Kay [mailto:mike@s...] 
Sent: 15 January 2007 10:05
To: Nicholas.Ardlie@g...; xmlschema-dev@w...
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

 

http://www.saxonica.com/download/patched/saxon-saj-8804.zip
<http://www.saxonica.com/download/patched/saxon-saj-8804.zip> 

 

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@w... [mailto:xmlschema-dev-request@w...] On
Behalf Of Nicholas.Ardlie@g...
Sent: 15 January 2007 06:57
To: xmlschema-dev@w...
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
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>

 



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. 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent