Re: Thoughts about editorial note id() in XForms 1.1

Allan Beaufour wrote:
> On 4/3/06, Nick_Van_den_Bleeken@inventivedesigners.com
> <Nick_Van_den_Bleeken@inventivedesigners.com> wrote:
>   
>> Please comment on them, they are personal view and I'm certain that I've
>> overlooked some things because I'm not an xml schema specialist.
>>     
>
> Join the club :)
>
>   
>> 1) Does the XForms type MIP also apply such that an element would be
>> returned if it contains an attribute with a matching ID and the XForms
>> type has assigned the xsd:ID type to that attribute?
>>     
>
> I think that if we set the type, we set the type. There should not be
> weird restrictions on which types apply, and how they apply. So I say:
> yes.
>   
I agree.
>   
>> 2) What would it mean if an xsd:ID type were assigned directly to the
>> element's content by an xsi:type attribute or a schema?
>>
>> If you read 3.3.8 ID of the 'XML Schema Part 2: Datatypes Second Edition'
>> : "... For compatibility (see Terminology (§1.4)) ID should be used only
>> on attributes."
>>
>> Therefore I think this should be discouraged in our spec, or left
>> Implementation dependant
>>     
>
> Hmm, that is unfortunate. So, yes at least we should discourage that.
>
>   
I think that the backwards compatibility is about DTDs and since XForms 
does not rely much on DTDs but a lot on XML Schema it should be 
perfectly valid (and expected) that someone would want to assign xsd:ID 
to an element and then use the id function to retrieve it. So I think 
this should not be discourage nor should it be left implementation 
dependent. Even though XML Schema discourage assigning IDs to anything 
but attributes then the behavior is still well defined and must work 
across schema validators.

>> 3) Do XML schema types derived from xsd:ID count?
>>
>> In XPath 1.0 is no reference to Schema, but in 'XQuery 1.0 and XPath 2.0
>> Data Model' you can read:
>>
>>   is-id : If the type-name is xs:ID or a type derived from xs:ID, true,
>> otherwise false.
>>
>> Therefore I personally think that types derived from xsd:ID count.
>>     
>
> Yes, not an XForms problem. If XQuery and XPath 2.0 says so, let's follow them.
>
>   

I agree.
> --
> ... Allan
>
>   
... David

-- 
--------------------------------------------
David Landwehr (david.landwehr@solidapp.com)
Chief Executive Officer, SolidApp
Web: http://www.solidapp.com
Office: +45 48268212
Mobile: +45 24275518
--------------------------------------------

Received on Tuesday, 4 April 2006 12:12:23 UTC