W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2005

FW: Complex type restriction question

From: Natarajan Ravi <Ravi.Natarajan@cfh.nhs.uk>
Date: Thu, 13 Oct 2005 10:17:48 +0100
Message-ID: <437C33FAECC7DC41A1AD897B989C233B02E5175D@exchpe.nhsia.nhs.uk>
To: <xmlschema-dev@w3.org>

	I am trying to restrict an existing complex type "A" in the
element "F" allows any content. In the restriction model I want to plug
in a new element type for the same. I think this is not possible in
restriction type derivation of complex type. I can do this different way
by extension or is there a more elegant way to handle this. 

<xs:complexType name="A">
<xs:element name="B" type="typeA" minOccurs="0"/>
<xs:element name="F" type="typeF" minOccurs="0"/>

<xs:complexType name="typeF">

<xs:complexType name="AA">
			<xs:restriction base="A">
					<xs:element name="Element1"
type="A.B" minOccurs="0"/>
					<xs:element name="F" type="AA.F"

<xs:complexType name="AA.F">
			<xs:element name="Test" type="XXXXX"/>


This e-mail is confidential and privileged. If you are not the intended recipient please accept our apologies; please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents: to do so is strictly prohibited and may be unlawful. Please inform us that this message has gone astray before deleting it. Thank you for your co-operation.
Received on Thursday, 13 October 2005 09:21:20 UTC

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