XQuery schema to defintion question

Given the following fragment of a schema (taken from Microsoft's
simplified xsdschema.xsd which ships with Visual Studio.NET):

<simpleType name="blockEnum">
	<union>
		<simpleType>
			<restriction base="string" >
				<enumeration value="#all" />
			</restriction>
		</simpleType>
		<simpleType>
			<list>
				<simpleType>
					<restriction base="string">
						<enumeration
value="substitution" />
						<enumeration
value="extension" />
						<enumeration
value="restriction" />
					</restriction>
				</simpleType>
			</list>
		</simpleType>
	</union>
</simpleType>

is the following the appropriate definition written in the type system?

define type blockEnum {( [Anon2] restrict xs:string { xs:string }  )* |
[Anon1] restrict xs:string { xs:string } }

Note that there are no separate global type definitions for [Anon1] and
[Anon2].

	Thanks,
	-Todd

Received on Wednesday, 26 February 2003 20:51:17 UTC