Re: processContents=strict + xsi:type

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 UTC