This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23118 - 'V' in fn:id
Summary: 'V' in fn:id
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 3.0 (show other bugs)
Version: Candidate Recommendation
Hardware: All All
: P2 trivial
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-31 16:56 UTC by Tony Graham
Modified: 2013-09-01 09:09 UTC (History)
0 users

See Also:


Attachments

Description Tony Graham 2013-08-31 16:56:30 UTC
See http://www.w3.org/TR/xpath-functions-30/#func-id

The 'V' in "the typed value of the element node is equal to V" is in the text font, whereas the 'V' in "whose typed value is equal to V" is in a monospace font.

It's the same in F+O 1.0.

FWIW, where 'V' comes from is not explained, so it's necessary to just assume it's one of the 'candidate IDREF values' (or candidate ID values for fn:idref).
Comment 1 Michael Kay 2013-08-31 19:54:16 UTC
I've fixed the incorrect font.

The intent here is that E and V are free variables in a definition: it's defining a function 

function has-id-value(E, V) {
  is-id(E) and data(E) eq V
}

Perhaps it would be clearer to the typical reader if it were done in pseudo-code rather than legalese English.
Comment 2 Tony Graham 2013-09-01 09:09:15 UTC
I think this is all that would be necessary:

   E has an ID value equal to one of the candidate IDREF values, V, where: