Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


extending xs:anyType (SQC bug)

From: Kasimier Buchcik <K.Buchcik@---------.-->
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.


transparent
Print
Mail
Digg
delicious
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