Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


FW: Complex type restriction question

From: "Natarajan Ravi" <Ravi.Natarajan@---.---.-->
To: <xmlschema-dev@--.--->
Date: 10/13/2005 11:18:00 AM
	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:sequence>
<xs:element name="B" type="typeA" minOccurs="0"/>
<xs:element name="F" type="typeF" minOccurs="0"/>
</xs:sequence>
</xs:complexType>


<xs:complexType name="typeF">
<xs:sequence>		=09
<xs:any/>
</xs:sequence>
</xs:complexType>

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

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

Regards
Ravi.N

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.




From K.Buchcik@4... Thu Oct 13 10:09:22 2005
Received: from lisa.w3.org ([128.30.52.41])
	by f


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent