W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2016

[Bug 29802] New: [XSLT30] (largely editorial) The description of the initial value for global parameters seems too narrow

From: <bugzilla@jessica.w3.org>
Date: Fri, 02 Sep 2016 14:34:37 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29802-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29802

            Bug ID: 29802
           Summary: [XSLT30] (largely editorial) The description of the
                    initial value for global parameters seems too narrow
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: XSLT 3.0
          Assignee: mike@saxonica.com
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

The definition for the global context item describes how it is applicable to
global variables (section 2.3.2 Priming a stylesheet):

"[Definition: An item that acts as the global context item for the
transformation. This item is accessible as the initial value of the XPath
expressions . (dot) and self::node() appearing within the select expression or
sequence constructor of a global variable declaration within the top-level
package, as described in 5.3.3.1 Maintaining Position: the Focus. ]"

(Editorial: also note the excessive space at the end.)

This suggests that "this item" it not accessible in other ways. But suppose you
have <xsl:variable name="x" select="/" />, or <xsl:variable name="y"
select="foo" />. It should also be applicable to such expressions. The global
context item does not need to be a (rooted) node.

I propose therefore to change it perhaps like this:

"[Definition: An item that acts as the *global context item* for the
transformation. This item acts as the initial *focus* for the select expression
or sequence constructor of a *global variable* declaration within the
*top-level* package, as described in 5.3.3.1 Maintaining Position: the Focus.]"

Also editorial in this section: "If the initialization of any global variables
or parameter depends" >> "...any global variables or parameters..." (missing
"s").

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 2 September 2016 14:34:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:02 UTC