![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - inconsistent results [Thread Next] extending xs:anyType (SQC bug)To: ML-xml-schema-dev <xmlschema-dev@--.---> Date: 10/28/2005 1:06:00 PM Hi, Potential bug in IBM's SQC: it does not allow the xs:anyType to be extended. (MSXML 4.0 SP2 does not allow it either, but I think this is a known problem). Scenario: extension-anyType.xsd --------------------- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:complexType name="myType"> <xsd:complexContent> <xsd:extension base="xsd:anyType"/> </xsd:complexContent> </xsd:complexType> <xsd:element name="foo" type="myType"/> </xsd:schema> ERROR file = file:P:/libxml2-lab/tests/2005-10-28/anyType-ext/extension-anyType.xsd line 7 column 20 SEVERITY: 1 ERROR TYPE: 2 MESSAGE TYPE REFINEMENT ERROR : The type complexType myType was defined by extension on the type http://www.w3.org/2001/XMLSchema:anyType. But according to the definition of type http://www.w3.org/2001/XMLSchema:anyType (in the final attribute), it cannot be refined using the derivation method, extension. To fix this problem, either define complexType myType without reference to http://www.w3.org/2001/XMLSchema:anyType, or remove or modify the final clause in the definition of http://www.w3.org/2001/XMLSchema:anyType. Regards, Kasimier From sandro@m... Fri Oct 28 17:01:40 2005 Received: from lisa.w3.org ([128.30.52. | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
