[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

context for simple type definition in simpleContent restriction

From: Tobias Koenig <tobias.koenig@trolltech.com>
Date: Wed, 26 Nov 2008 17:56:39 +0100
To: xmlschema-dev@w3.org
Message-Id: <200811261756.39682.tobias.koenig@trolltech.com>
context for simple type definition in simpleContent restriction

Hej,

the schema spec 1.1 says for the {context} of a simple type defined inside a 
simpleContent restriction:

2.4.2 otherwise (the grandparent element information item is <simpleContent>), 
the Simple Type Definition which is the {content type} of the Complex Type 
Definition corresponding to the great-grandparent <complexType> element 
information item.

But doesn't that mean that the simple type can end up with the context 
pointing to itself, as the simple type can be the {content type} of the 
Complex Type Definition in some cases?

Shouldn't the complex type definition be the {context} of the simple type 
instead? Otherwise I don't see how the context could be a Complex Type 
Definition as mentioned in http://www.w3.org/TR/xmlschema11-1/#std-context

Ciao,
Tobias
Received on Wednesday, 26 November 2008 16:49:28 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.