W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2005

Re: It seems to be a problem with the XML Schema for Schemas which is normative...

From: Post, Dr. Ulrich <Ulrich.Post@softwareag.com>
Date: Wed, 16 Mar 2005 21:44:41 +0100
Message-ID: <76EEB38C72AE1D4EA2FE2753766EB51447E9EF@DAEMSG03.eur.ad.sag>
To: <www-xml-schema-comments@w3.org>

Hi

I think the type definition 

  <xs:complexType base="xs:anyType" name="empty" />

should be rejected - the "base" attribute is not modelled explicitly in 
any of the following type definitions describing local / global complex
type definitions: localComplexType / topLevelComplexType.

Hence, the base might onla match agains the attribute wildcard:
	<xs:anyAttribute namespace="##other" processContents="lax"/>
However, the namespace="##other" does not allow for an attribute
with namespace *absent* - see section 3.10.4 Wildcard validation rules
(http://www.w3.org/TR/xmlschema-1/#d0e12802):

2 All of the following must be true:
  2.1 The constraint is a pair of not and a namespace name or *absent*
([Definition:]  call this the namespace test).
  2.2 The value must not be identical to the *namespace test*.
  2.3 The value must not be *absent*.		<====

Best regards
Uli
Received on Wednesday, 16 March 2005 21:30:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT