- From: <bugzilla@jessica.w3.org>
- Date: Sat, 25 Jun 2016 15:47:43 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29705
Bug ID: 29705
Summary: [xslt3.0] global-context-item() function
Product: XPath / XQuery / XSLT
Version: Candidate Recommendation
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: XSLT 3.0
Assignee: mike@saxonica.com
Reporter: mike@saxonica.com
QA Contact: public-qt-comments@w3.org
Target Milestone: ---
Would it be useful to have a function
global-context-item()
to return the value of the global context item (or () if absent)?
Firstly it saves the user the trouble of binding a global variable
<xsl:variable name="source" select="."/>
Secondly it provides a way of determining (without try/catch) whether a global
context item was actually supplied, by testing
exists(global-context-item())
In Saxon-CE and Saxon-JS we have a vendor extension function ixsl:source() with
this meaning; it would be nice to be able to use a core function instead.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Saturday, 25 June 2016 15:47:46 UTC