W3C home > Mailing lists > Public > www-forms-editor@w3.org > October 2007

Re: xsi:type (PR#85)

From: John Boyer <xforms-issues@mn.aptest.com>
Date: Wed, 17 Oct 2007 19:41:33 -0500
Message-Id: <200710180041.l9I0fX2c019822@htmlwg.mn.aptest.com>
To: ebruchez@orbeon.com
CC: www-forms-editor@w3.org

Hi Erik,

Yes, it is true that xsi:type attributes are supported even when there are no
form-declared schema in the form.  This is because the validation test in
Section 4.3.4 states that validity is based on *all applicable schema
definitions* including those coming from xsi:type. Due to the XML Schema
recommendation, an existing xsi:type declaration is, by default, applicable to
element validity.  In general, we follow all rules of XML schema except those
that are explicitly mentioned as not being supported.  Section 6.2 provides the
only mention of schema rules we do not follow (and are allowed not to follow). 
In that section, we say that schema rules are not applicable if they come from a
schema indicated by xsi:schemaLocation or xsi:noNamespaceSchemaLocation.

In today's WG telecon, you indicated it would be satisfactory to have a note in
the spec to clarify that xsi:type is applicable even if there are no declared
schemas, and that note appears in Section 4.3.4 of the editor's draft of the
spec available from the WG home page. 

Thank you,
John Boyer

> 
> All,
> 
> XForms mentions in a few places support for xsi:type, in "4.3.5 The
> xforms-revalidate Event", "6.2.1 Atomic Datatype", and "7.11.4 The id()
> Function".
> 
> It is not clear to me if an implementation must support xsi:type
> attributes on elements when there is no xforms:model/@schema defined, or
> no inline schema.
> 
> It is my understanding that the "type" model item property does support
> XML Schema and XForms built-in data types even in the absence of a
> schema. But is this true as well of xsi:type attributes?
> 
> -Erik
> 
> -- 
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
> 
> 
Received on Thursday, 18 October 2007 00:43:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 10 June 2009 18:12:16 GMT