W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2001

Schema question

From: sk ask <arigapudi_s@yahoo.com>
Date: Wed, 5 Dec 2001 01:15:01 -0800 (PST)
Message-ID: <20011205091501.34336.qmail@web13502.mail.yahoo.com>
To: www-xml-schema-comments@w3.org

Hi, I have an element definition like this.
However, I want to define a type and use it
over and over again with different minInclusive/
maxInclusive values. Is it possible?


<xsd:element name="Elevation">
						<xsd:complexType>
							<xsd:simpleContent>
								<xsd:restriction base="xsd:double">
									<xsd:attribute name="value" default="0">
										<xsd:simpleType>
											<xsd:restriction base="xsd:double">
												<xsd:minInclusive value="-100000"/>
												<xsd:maxExclusive value="100000"/>
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:attribute>
								</xsd:restriction>
							</xsd:simpleContent>
						</xsd:complexType>
					</xsd:element>


=====


__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com
Received on Wednesday, 5 December 2001 04:15:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:57 GMT