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

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.

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

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

--
... Allan

Received on Tuesday, 4 April 2006 11:59:40 UTC