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

Hi,

> 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:

  strict
    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
    appropriate.

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

Jeni

---
Jeni Tennison
http://www.jenitennison.com/
Received on Monday, 27 October 2003 04:46:14 GMT

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