This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In ยง15.5.2, fn:id reports error err:XPTY0004 "if the context item is not a node"; but the error is defined in the appendix to be "It is a type error if, during the static analysis phase, an expression is found to have a static type that is not appropriate for the context in which the expression occurs, or during the dynamic evaluation phase, the dynamic type of a value does not match a required type as specified by the matching rules in 2.5.4 SequenceType Matching." As other functions (like namespace-uri, name,..) use err:XPTY0006 for the same reason, I think it should be used also here.
The same comment applies to fn:idref too
In fact a decision was made to merge XPTY0004 and XPTY0006 into a single error code, because the only distinction between them was the time at which the error is detected rather than the nature of the error. Unfortunately this decision has not been implemented in the F+O book. Michael Kay
The joint WGs agreed in the telcon on 6-7-2005 to change the error for "context item is not a node" to an F&O error. As suggested by Jerome, this should be a type error. See (member-only) mail: http://lists.w3.org/Archives/Member/w3c-xsl-query/2005May/0032.html http://lists.w3.org/Archives/Member/w3c-xsl-query/2005May/0035.html Ashok Malhotra
Changing status from the rarely-used VERIFIED to CLOSED.