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

Re: processContents=strict + xsi:type

From: Jeni Tennison <jeni@jenitennison.com>
Date: Mon, 27 Oct 2003 09:45:58 +0000
Message-ID: <155172939113.20031027094558@jenitennison.com>
To: tmoog@sarvega.com
Cc: xmlschema-dev@w3.org


> For a wildcard such as:
>     <xs:any processContents="strict" />
> How does the "strict" interact with xsi:type ?
> In particular, given an element "foo" (which is not
> defined in any schema) is the following valid for
> an xs:any with processContents="strict" ?
>      <foo xsi:type="xs:int">1234</foo>
> I have one processor which accepts this, and one
> which rejects it.

I think that it's valid. In 3.10.1 The Wildcard Schema Component, the
spec says:

    There must be a top-level declaration for the item available, or
    the item must have an xsi:type, and the item must be ·valid· as

In this case, the item has a xsi:type attribute and is valid against
the named type definition.


Jeni Tennison
Received on Monday, 27 October 2003 04:46:14 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:03 UTC