- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 01 Feb 2001 09:46:23 +0000
- To: Michael Anderson <michael@research.canon.com.au>
- Cc: Arnaud Blandin <blandin@intalio.com>, xmlschema-dev@w3.org
Michael Anderson <michael@research.canon.com.au> writes:
<snip/>
> So your example will only be OK if foo2 is rewritten as foo and the
> type "something" is validly derived from "somethingElse". Ie, the
> following is now O (though probably not what you wanted)
I agree that this is now correct, and the only way an attribute can
appear. The other possibility is to have facets in the restriction.
> <complexType>
> <simpleContent>
> <restriction base="type">
> <attribute name="foo" type="something"/>
> </restriction>
> </simpleContent>
> </complexType>
>
> <complexType name="type">
> <simpleContent>
> <extension base="string">
> <attribute name="foo" type="somethingelse"/>
> </extension>
> </simpleContent>
> </complexType>
>
> <simpleType name="something">
> <restriction base="somethingelse">
> <length value="10"/>
> </restriction>
> </simpleType>
>
> mick.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
W3C Fellow 1999--2001, part-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
Received on Thursday, 1 February 2001 04:46:28 UTC