<?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>28122</bug_id>
          
          <creation_ts>2015-03-02 09:03:38 +0000</creation_ts>
          <short_desc>[xslt 3.0] the function xsl:original</short_desc>
          <delta_ts>2015-10-29 09:50:40 +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>Candidate Recommendation</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>
          <cc>abel.braaksma</cc>
          
          <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>118229</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-02 09:03:38 +0000</bug_when>
    <thetext>We say in 3.6.3.3:

&lt;quote&gt;
Within the declaration of an overriding component (that is, a component whose declaration is a child of xsl:override), where the overridden component has public visibility, it is possible to use the name xsl:original as a symbolic reference to the overridden component:

&lt;snip/&gt;
* Within an overriding stylesheet function, xsl:original() may be used to call the overridden stylesheet function.

&lt;/quote&gt;

There&apos;s a need for more precision here.

(a) a function call on xsl:original will usually have arguments

(b) symbolic references to functions may also appear in the form of partial function application (e.g. xsl:original(?, 3)), or named function references (e.g. xsl:original#2). We need to make it clear that these are legal.

(c) we should make it clear that xsl:original cannot be used in static expressions, e.g. within use-when. (This also applies to the variable reference $xsl:original)

(d) we should make it clear that dynamic references to xsl:original, e.g in function-available(), function-lookup(), or xsl:evaluate, will not succeed. Again this also applies to the variable reference $xsl:original.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118605</commentid>
    <comment_count>1</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-15 12:01:20 +0000</bug_when>
    <thetext>&gt; (b) symbolic references to functions may also appear in the form of partial 
&gt; function application (e.g. xsl:original(?, 3)), or named function references
&gt; (e.g. xsl:original#2). We need to make it clear that these are legal.

Or that they are not, because it would break information hiding.

Related, and possibly (partially) a duplicate: Bug 28210.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118711</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-20 12:16:18 +0000</bug_when>
    <thetext>I was asked to propose detailed changes.

The proposal can be found at

https://lists.w3.org/Archives/Member/w3c-xsl-wg/2015Mar/0037.html

(member-only link)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118738</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-20 17:45:43 +0000</bug_when>
    <thetext>*** Bug 28210 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119413</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-04-09 21:34:58 +0000</bug_when>
    <thetext>The proposal was accepted and has been applied.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>