Altova Mailing List Archives


Re: XML schema validation problem with XMLSpy

From: "Jerry" <jerry.sheehan@-----.--->
To: NULL
Date: 3/9/2007 10:54:00 AM

On Mar 9, 11:22 am, "Blue  Doze" <blued...@gmail.com> wrote:
> Hello,
>
> I have the following XML schema fragment:
>
>      <xs:complexType name="type.1">
>                 <xs:simpleContent>
>                         <xs:restriction base="ns:type">
>                                 <xs:simpleType>
>                                         <xs:restriction base="xs:positiveInteger"/>
>                                 </xs:simpleType>
>                         </xs:restriction>
>                 </xs:simpleContent>
>         </xs:complexType>
>         <xs:complexType name="type">
>                 <xs:simpleContent>
>                         <xs:extension base="xs:anySimpleType">
>                                 <xs:attributeGroup ref="nx:att.group"/>
>                         </xs:extension>
>                 </xs:simpleContent>
>         </xs:complexType>
>
> XMLSpygives me the below error when I'm in the schema/WSDL view,
> while the text view works fine:
>
> File testSchema.xsd is not valid.
>         The content type (simpleType) of complexType "type.1" cannot restrict
> simpleType 'anySimpleType'!
>
> Is this a problem in my schema, or it's a bug in theXMLSPyvalidator
>
> I'm usingXMLSpy2006 rel. 3 sp2
>
> I tried one online schema validator, on the w3c site, and it didn't
> complain.

Hello,

The Text View is correct so rely on that validation! I have reported
this issue to the development team for a fix so the error is not
raised in the Schema Design View. Please excuse us for the
inconvenience.

(http://www.altova.com )

Best regards,

... Jerry Sheehan
... Pre-Sales Engineer
... Altova, Inc.
... 978-816-1614

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.