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

Derivation by restriction

From: <Simon.Cox@csiro.au>
Date: Thu, 2 Dec 2004 18:36:56 +0800
Message-ID: <2A2B2F12CF99EA4A898E2D4729441B41ECCB3D@exwa2-per.wa.csiro.au>
To: <xmlschema-dev@w3.org>
Derivation by restriction

What is the correct syntax for derivation from complexType/simpleContent
types?
For example, if I write

<complexType name="MeasureType">
	<simpleContent>
		<extension base="double">
			<attribute name="uom" type="token"
use="required"/>
		</extension>
	</simpleContent>
</complexType>

<complexType name="LengthType">
	<simpleContent>
		<restriction base="gml:MeasureType"/>
	</simpleContent>
</complexType>

1. Is the "double" simpleContent preserved or not?
2. Is there any way I can restrict the value of uom?

Simon Cox
______
Simon.Cox@csiro.au  CSIRO Exploration & Mining
26 Dick Perry Avenue, Kensington WA 6151
PO Box 1130, Bentley WA 6102  AUSTRALIA
T: +61(8) 6436 8639  F: +61(8) 6436 8555  
C: +61(4) 0330 2672 callto://dr_shorthair 
http://www.em.csiro.au 
  
Received on Thursday, 2 December 2004 10:37:31 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.