<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27015</bug_id>
          
          <creation_ts>2014-10-10 09:45:50 +0000</creation_ts>
          <short_desc>[xslt 3.0] xsl:context-item/@use = &quot;prohibited&quot;: detailed wording</short_desc>
          <delta_ts>2015-10-29 09:50:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XSLT 3.0</component>
          <version>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Michael Kay">mike</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>112944</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-10-10 09:45:50 +0000</bug_when>
    <thetext>The wording of the rule for @use=&quot;prohibited&quot; 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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113014</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-10-13 09:21:41 +0000</bug_when>
    <thetext>There&apos;s a similar problem for xsl:global-context-item. It says &quot;If the value prohibited is specified, then the global context item must be absent.&quot; This doesn&apos;t really indicate if we expect a dynamic error in this case (and what error?), or if we expect the supplied global context item to be ignored. One could say that the decision between the two is a matter of API design and therefore out of scope. The analogy with xsl:context-item would suggest ignoring the supplied context item rather than throwing an error. This also might be appropriate given the existence of legacy APIs that supply a context item and an initial match selection in the same breath.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116231</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-12-12 17:59:14 +0000</bug_when>
    <thetext>This was discussed by the WG on 13 Nov 2014, but the minutes of that meeting were accidentally lost, so the decision needs reconfirming. According to the editor&apos;s notes, the WG agreed to resolve the issue as proposed in 

https://lists.w3.org/Archives/Member/w3c-xsl-wg/2014Nov/0013.html

(member-only link)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116517</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2014-12-18 21:19:15 +0000</bug_when>
    <thetext>The WG confirmed its decision to resolve this issue as proposed in 

https://lists.w3.org/Archives/Member/w3c-xsl-wg/2014Nov/0013.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>