<?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>3073</bug_id>
          
          <creation_ts>2006-04-04 12:22:49 +0000</creation_ts>
          <short_desc>[XSLT 2.0] Passing parameters through built-in templates</short_desc>
          <delta_ts>2006-05-03 21:06:03 +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 2.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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>9021</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-04-04 12:22:49 +0000</bug_when>
    <thetext>The non-normative Appendix J.1.3 states:

If backwards compatible behavior is enabled for an xsl:apply-templates or xsl:apply-imports instruction, and the instruction causes a built-in template rule to be invoked, then the built-in template rule ignores any parameters that are passed: it does not pass them on to any further template rules.

There is no normative statement to back this up. It appears to contradict the normative statement in 6.6: If the built-in rule was invoked with parameters, those parameters are passed on in the implicit xsl:apply-templates instruction.

I don&apos;t recall the history of this one off-hand: I know it was discussed at some length.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9039</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-04-05 09:34:09 +0000</bug_when>
    <thetext>Some further input on this: see http://www.w3.org/TR/2005/WD-xslt20-20050211/#changes-2005-02

&quot;Changes in the February 2005 draft&quot;

including the following:

The behavior of certain constructs in backwards-compatible mode has changed to more closely reflect the XSLT 1.0 behavior. Specifically:

...     In backwards compatible mode, parameters passed to a built-in template rule are not passed on.

It looks as if we made a decision to make this change, added it to the change log and to the non-normative &quot;backwards compatibility&quot; appendix, but failed to make any change to the normative section (6.6 Built-In Template Rules) where it belongs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9511</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-04-27 20:43:02 +0000</bug_when>
    <thetext>In discussion, the working group decided that parameters should be passed through the built-in templates even in backwards-compatibility mode. The relevant entry has therefore been removed from J.1.3, and a new entry describing the incompatibility has been added to J.1.4.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>