W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2003

Re: block-attribute and XSV

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
Message-ID: <f5by93awg9l.fsf@erasmus.inf.ed.ac.uk>

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 GMT

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