[Bug 27015] New: [xslt 3.0] xsl:context-item/@use = "prohibited": detailed wording

https://www.w3.org/Bugs/Public/show_bug.cgi?id=27015

            Bug ID: 27015
           Summary: [xslt 3.0] xsl:context-item/@use = "prohibited":
                    detailed wording
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          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

The wording of the rule for @use="prohibited" is rather fuzzy:

If the value prohibited is specified, then there will be no context item
available to the body template (if the calling template has a context item, it
will not be made available to the called template).

(a) it doesn't mention what happens to position() or last()

(b) it assumes there is a calling template

Propose instead:

If the value prohibited is specified, then the contained sequence constructor,
and any xsl:param elements, are evaluated with an absent focus. 

Note: it is not an error to call such a template with a non-absent focus; the
context item is simply treated as absent. This option is useful when streaming,
since an xsl:call-template instruction may become streamable if the referenced
template is declared to make no use of the context item.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 10 October 2014 09:45:51 UTC