[Bug 3032] Setting the is-id and is-idref property on element nodes

http://www.w3.org/Bugs/Public/show_bug.cgi?id=3032





------- Comment #3 from Norman.Walsh@Sun.COM  2006-04-24 17:55 -------
I overlooked the fact that I hadn't made the equivalent change in the attribute
case.

Trying to craft a resolution to this issue, I looked around at what's in XDM
and concluded that we were going to have to look at the typed-values of
elements and attributes.

The fact that we have to look at the typed-value (instead of the type-name)
means that we have to look explicitly at the types of the members of the list
of atomic values that comprise the typed-value.

So what do we do if the list contains more than one element?

1. is-id is true if any of the values is of type xs:ID (or derived from)
2. is-id is true if the first value is of type xs:ID (or derived from)
3. is-id is false

I think 1 is the choice of least surprise to users. I could live with 3. I
think 2 is wrong.

Received on Monday, 24 April 2006 17:55:34 UTC