XPath2 F&O fn:id() broken wrt XPointer

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

F&O defines fn:id [1], which retrieves element(s) with a given ID, as
you would expect wrt elements with attributes of type ID, but as
follows for elements:

 "The is-id property (See Section 5.5 is-id AccessorDM.) of the
  element node is true, and the typed value of the element node is
  equal to V under the rules of the eq operator using the Unicode code
  point collation."

So if we have

 <foo xml:id='baz'/>

or

 <foo myid='baz'/> where myid is assigned type ID by schema validation

the value of fn:id('baz') is the foo element, but if we have

 <foo>
  <myid>baz</myid>   where myid is assigned type ID by schema validation
 </foo>

the value of fn:id('baz') is the myid element.

This is out of sync with XML Schema's intentions, and, more to the
point for this WG, at odds with the XPointer framework spec's
definition of shorthand (barename) pointer resolution [2].

I think we should ask QT for an erratum.

ht

[1] http://www.w3.org/TR/xquery-operators/#func-id
[2] http://www.w3.org/TR/xptr-framework/#term-sdi
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
                         Half-time member of W3C Team
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFIvrZYkjnJixAXWBoRAo9sAJ42V4EH6bO+V6Kem75A+Q90sC7E3QCfZr1d
r47mv55Drzaj2O6enp6mOdM=
=MHpn
-----END PGP SIGNATURE-----

Received on Wednesday, 3 September 2008 16:08:28 UTC