W3C home > Mailing lists > Public > www-forms@w3.org > April 2006

Re: Digging through section 6.2.1 / multiple types for an element

From: John Boyer <boyerj@ca.ibm.com>
Date: Thu, 6 Apr 2006 09:16:24 -0700
To: Lars Oppermann <Lars.Oppermann@Sun.COM>
Cc: Allan Beaufour <beaufour@gmail.com>, "Nick_Van_den_Bleeken@inventivedesigners.com" <Nick_Van_den_Bleeken@inventivedesigners.com>, www-forms@w3.org, www-forms-request@w3.org
Message-ID: <OF23F9A59C.CADA3750-ON88257148.00590D2E-88257148.005965AE@ca.ibm.com>
OK, yes there is a typo in the subject line of this thread, so I didn't 
look at 6.1.1.

I looked at 6.2.1, which is clearer about the separation of concerns.

So, agree we need to correct 6.1.1 so that instead of saying "The effect 
of type is the same as xsi:type"

to say "The effect of type MIP is the same as xsi:type *on the information 
set provided by XForms processor and the validity conclusions drawn by 
xforms processor*"

Still, I think the end of Allan's thread, your own conclusions, and mine 
are very similar that this is the case,
and it's just that I didn't see where it was coming from because I read 
6.2.1  :-)

Cheers,
John M. Boyer, Ph.D.
Senior Product Architect/Research Scientist
Co-Chair, W3C XForms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com  http://www.ibm.com/software/

Blog: http://www.ibm.com/developerworks/blogs/boyer/index.jsp





Lars Oppermann <Lars.Oppermann@Sun.COM> 
Sent by: www-forms-request@w3.org
04/06/2006 08:54 AM

To
John Boyer/CanWest/IBM@IBMCA
cc
Allan Beaufour <beaufour@gmail.com>, 
"Nick_Van_den_Bleeken@inventivedesigners.com" 
<Nick_Van_den_Bleeken@inventivedesigners.com>, www-forms@w3.org, 
www-forms-request@w3.org
Subject
Re: Digging through section 6.2.1 / multiple types for an element







Hi John,

John Boyer wrote:
> I especially don't see where it says that type MIP "is like xsi:type"
>  thereby implying some effect of the type MIP on the PSVI.  This is
> especially true because XForms does not strictly require a
> PSVI-capable schema processor, nor does it require a host language to
>  even have a CSS processor such that hypothetical effects of the type
> MIP on the non-required PSVI could be operated on by the non-required
> CSS selector.


Well, it does say, that it is like xsi:type in 6.1.1, but it doesn't
draw the conclusion, that this has any effect on the PSVI.

My thoughts on some hypothetical PSVI based CSS selector don't add
anything useful to this particular discussion. So lets leave those aside.

Regarding xsi:type and the type-MIP, I think the fact that the type-MIP
is something layered on top of anything that goes on in 'schema-land' is
clear from the spec. What I still find confusing (I am also no master in
XSD questions) is that XSD-1
(http://www.w3.org/TR/xmlschema-1/#xsi_type) introduces xsi:type as a
way of explicitly assigning a schema type to an element. XSD-1 is also
laying out rules that if an information item has an xsi:type, as well as
a schema type, the xsi:type must be derived from the expected schema type.

By saying, the type-MIP behaves like xsi:type, one might argue, that
XForms is implying the XSD handling of xsi:type.

Maybe it would be clearer, if it says, that in the XForms model,
xsi:type attributes on elements should behave like a type-MIP of that
type being applied to that element, rather than the other way round.
That way, an implementation that is not supporting schema validation
could still use the xsi:type information by generating type-MIPs from
them, as in XForms Basic.

In 6.2.1 (Atomic Datatype) the XForms spec gives three sources for XML
Schema facets, the first being "An XML Schema associated with the
instance data" and than "An XML Schema xsi:type attribute in the
instance data".
But with what I quoted from XSD-1 above, the xsi:type facet would
already have been applied by the schema validation according to the
rules given in XSD-1 (derivation requirement &c)

So now, to me it looks like xsi:type has two possibly conflicting
meanings in XForms and XSD:
- In xsd, xsi:type must not conflict with the schema type
- In XForms the type-MIP can very well conflict with the schema type,
authors are discouraged to do so, but they may if they choose to do so.
- _but_ XForms also says type-MIP is to behave like xsi:type

This conflict was also the main issue in Leigh's mail:
http://lists.w3.org/Archives/Public/www-forms-editor/2004Aug/0003
with regards to the handling in Basic vs. Full.



/lars




-- 
Lars Oppermann <lars.oppermann@sun.com>               Sun Microsystems
Software Engineer - StarOffice                           Sachsenfeld 4
Phone: +49 40 23646 959                                D-20097 Hamburg
Fax:   +49 40 23646 550                  http://www.sun.com/staroffice
Received on Thursday, 6 April 2006 16:16:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:03 GMT