- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: 20 Mar 2003 09:15:18 +0000
- To: Rainer Becker <w3cschema@rbecker.de>
- Cc: xmlschema-dev@w3.org
Rainer Becker <w3cschema@rbecker.de> writes:
<snip/>
> Please note the empty value of the block-attribute in the complex type
> definition "ct_base" and in the element declaration of "Test".
>
> Question: No matter if I use block="extension" in "ct_base" or
> block="extension" in "Test". The behaviour is the same error message.
> (I do not change anything in the instance)
I'm not sure I understand, but I believe the behaviour you're getting
is correct. See Jeni's excellent explanation the recent thread on
'block'.
When you put block='extension', what you mean is "Guarantee that any
valid instance of this element will have a type related to the
declared type only by identity or restriction". It guards against
both changes via substitution and changes via xsi:type.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-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/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Thursday, 20 March 2003 04:15:24 UTC