<?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>1812</bug_id>
          
          <creation_ts>2005-07-25 00:17:34 +0000</creation_ts>
          <short_desc>Need explicit statement on global variables and launch options</short_desc>
          <delta_ts>2005-07-25 07:06:58 +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>Last Call drafts</version>
          <rep_platform>All</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Marston">david_marston</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>5188</commentid>
    <comment_count>0</comment_count>
    <who name="David Marston">david_marston</who>
    <bug_when>2005-07-25 00:17:34 +0000</bug_when>
    <thetext>Regarding the 4 April 2005 draft of XSLT 2.0:
Section 2.3 describes aspects of the context I can set at launch time for a 
transformation, including the initial mode and the initial context node. 
Section 9.5 says that the initial context node is NOT the context node for 
global variables unless the node is a document node. Section 9.5 should also 
address any other launch options that could affect the value of a global 
variable, such as the initial mode. I definitely cannot say that the draft 
gives solid assurance about
&lt;xsl:apply-templates select=&quot;/fully/qualified/path&quot; mode=&quot;#current&quot;/&gt;
in the content constructor of a global variable. Indeed, the use of the above 
statement in a global variable seems like a cheesy way to pass in a pseudo-
parameter by way of setting the initial mode; it would probably better coding 
style to have meaning expressed as an actual launch-time parameter and use 
xsl:choose in each global variable constructor that wants to adjust its value 
based on launch-time settings.
PROPOSED ACTION: if not already decided by the WG, raise an issue, then add 
verbiage to part 9.5 that states whatever you decided.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5192</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-07-25 07:06:45 +0000</bug_when>
    <thetext>I believe that my response to bug 1811 addresses this point.

I have reclassified the bug as &quot;minor&quot; (meaning editorial) because I think the
intent of the Working Group in this area has always been clear.

You&apos;re right to point out that passing in an initial mode or initial template is
an alternative way of passing in stylesheet parameters, and that some people
might feel that using xsl:choose on an explicit parameter is better design
practice. I have to say, however, that I&apos;ve found the use of an initial mode or
initial template is a very convenient way of allowing a multi-phase stylesheet
to be debugged. I think we should refrain from giving usage advice in this area.

I hope you will accept the change described in my response to 1811 as an
adequate response to this issue; if not, please reopen the bug.

Michael Kay
Editor, XSLT 2.0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>