W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2002

local symbol spaces

From: oliver fodor <fodor@itc.it>
Date: Wed, 22 May 2002 16:42:02 +0200
Message-Id: <5.1.0.14.0.20020522162543.02581aa0@mail.acs.sk>
To: xmlschema-dev@w3.org
if i have two anonymous complex type definitions. inside of these i declare 
a local element with equal names. is this allowed? do also anonymous type 
definitions define their own local symbol spaces?

example (the element c):

<xsd:schema xmlns:xsd = "http://www.w3.org/2001/XMLSchema">
	<xsd:element name = "a">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name = "c">
					<xsd:complexType/>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>

	<xsd:complexType name = "r">
		<xsd:sequence>
			<xsd:element name = "s">
				<xsd:complexType/>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>

	<xsd:element name = "g">
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name = "c" type = "r"/>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
</xsd:schema>

how can such components be referenced from outside?
Received on Wednesday, 22 May 2002 10:44:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC