<?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>1811</bug_id>
          
          <creation_ts>2005-07-25 00:04:17 +0000</creation_ts>
          <short_desc>Need explicit statement of interactions among initial settings</short_desc>
          <delta_ts>2005-07-25 07:08:04 +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>5187</commentid>
    <comment_count>0</comment_count>
    <who name="David Marston">david_marston</who>
    <bug_when>2005-07-25 00:04:18 +0000</bug_when>
    <thetext>Comments based on the 4 April 2005 draft of XSLT 2.0:
After much jumping around between parts 2.3, 6.5, and 10.1, I am pretty sure 
that I know that there is a good reason to set both an initial mode and initial 
named template as simultaneous launch options. I&apos;m not 100% positive, but I am 
pretty sure that you are trying to say that if the named template specified at 
launch time contains the instruction
&lt;xsl:apply-templates mode=&quot;#current&quot;/&gt;
then the initial mode will be used. If one had been specified at launch time, 
that mode will be used.
EDITORIAL FIX: please add a note to part 10.1 (or 6.5 if you prefer) to make an 
explicit statement of the above.

The next question is about the interplay between launch-time parameter setting 
and the initial mode. Again, I am pretty sure, but not 100% sure, that an 
xsl:param element at the &quot;global&quot; stylesheet level can contain
&lt;xsl:apply-templates select=&quot;/fully/qualified/path&quot; mode=&quot;#current&quot;/&gt;
and it will use the initial mode specified at launch time, or the default mode 
if none was specified. (This is for content of xsl:param that was invoked 
because the value was not supplied at launch time.) If the processor has lazy 
evaluation of parameters, then the mode for the above instruction must be the 
initial mode, not whatever mode is current when the first reference to the 
param must be resolved.
EDITORIAL FIX: please add a note to part 9.5 to make an explicit statement of 
the above.

The question about initial mode vs. global variable has more factors, so I will 
report it separately.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5191</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-07-25 06:56:58 +0000</bug_when>
    <thetext>I think that your deductions are correct, and I think the explicit statement you
are looking for is already present in section 5.4.4.

I agree that the reader has to do a fair bit of jumping around the text to
discover the way these context variables work, but I believe that the
information is present in the text, and it is already very heavily hyperlinked.
I am reluctant to state the same facts repeatedly, because it always introduces
the danger of inconsistency.

I agree, though, that it would be useful for section 9.5 to be a bit more
explicit about the values of context variables when evaluating global variables
and parameters, and I&apos;ll add to the paragraph starting &quot;For a global variable or
the default value of a stylesheet parameter..&quot; the sentence &quot;The values of other
components of the dynamic context are the initial values as defined in [5.4.3]
and [5.4.4].&quot; 

Since this is editorial, I will close the bug in the hope that this resolution
is satisfactory; please reopen it if not.

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

    </bug>

</bugzilla>