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

block attribute (xsiType-block-4 in Sun test suite)

From: Stefan Wachter <Stefan.Wachter@gmx.de>
Date: Sat, 3 Aug 2002 10:36:31 -0400 (EDT)
To: xmlschema-dev@w3.org
Message-ID: <7640.1028385357@www6.gmx.net>




Dear all,

in the Sun test suite there is a schema (xsiType-block-4.xsd) and
accompaniying instance files that test conflicting behaviour of the block attribute:

The instance files xsiType-block-4.n1.xml and xsiType-block-4.n3.xml test
that the block attribute from an intermediate type blocks a type substitution.
There are three types involved in the test case:

Type B: no block attribute specified
Type Dr: Derived by restriction from B. Block attribute is "restriction"
Type Drr: Derived by restriction from Dr.

In the instance document an element of type B is overloaded by xsi:Drr.
Should this cause an error? The two mentioned test files are meant to test such a
behaviour. Interestingly another instance document (xsiType-block-4.v1.xml)
assumes that overloading the type B by Drr is allowed. Which behaviour is the
correct one?

Thanks for your attention,
--Stefan
Received on Monday, 5 August 2002 05:25:37 GMT

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