W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2002

Problems with definingt simple restriction

From: Steinar Rune Eriksen <sre@bizpartner.no>
Date: Mon, 16 Dec 2002 14:51:03 +0100
To: <xmlschema-dev@w3.org>
Cc: "Steinar Rune Eriksen" <sre@bizpartner.no>

This construction used to work 6 months ago... (using XML Spy 3.5 under
xmlns="http://www.w3.org/2001/XMLSchema" )

	<complexType name="Price">
			<restriction base="double">
				<fractionDigits value="2"/>
				<attribute name="currency" type="string"
			</restriction >

Using XML Spy 5, I get a validation error on restriction _base_, seeming
that this is not valid anymore. I cannot find any examples either of
restrction being used as child under simpleContent, though it seems like it
should be valid according to spec. Am I wrong?

Med vennlig hilsen

Steinar Rune Eriksen
BIZ Partner
Tel:    (+47) 67 57 15 52
Mobile: (+47) 90 52 81 48

Received on Monday, 16 December 2002 08:50:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:35 GMT