<?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>1321</bug_id>
          
          <creation_ts>2005-05-10 19:47:41 +0000</creation_ts>
          <short_desc>Value of Variables and Parameters (temporary trees from atoms)</short_desc>
          <delta_ts>2005-07-14 22:18:42 +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>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="David Holmes">dholmes</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>3446</commentid>
    <comment_count>0</comment_count>
    <who name="David Holmes">dholmes</who>
    <bug_when>2005-05-10 19:47:41 +0000</bug_when>
    <thetext>Section 9.3, Value of Variables and Parameters, contains the following snippet.
 
&quot;a new document (referred to as a temporary tree) is constructed with a 
document node having as its children the sequence of nodes that results from 
evaluating the sequence constructor&quot;
 
What happens when the sequence constructor creates atomic values? I can&apos;t find 
a prescription in the specification for how atoms become incorporated with the 
document node.
 
Thank You,
 
David Holmes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3447</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-05-10 20:11:23 +0000</bug_when>
    <thetext>The rest of the paragraph that you quote says that temporary trees are described
in more detail in section 9.4, and right at the start of 9.4 it says that the
rules for evaluating the sequence constructor to form the content of the
document node are given in section 5.7.1, Constructing Complex Content (which, I
think, answers your technical question).

I&apos;m happy to try to make the text clearer if I can, but I&apos;m having a little
difficulty seeing how to achieve that in this case. Do you have any concrete
suggestions?

Michael Kay (personal response)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3449</commentid>
    <comment_count>2</comment_count>
    <who name="David Holmes">dholmes</who>
    <bug_when>2005-05-10 22:20:59 +0000</bug_when>
    <thetext>Mike,
   I think that my expectation was that sequence constructor evaluation 
and &quot;coercion&quot; of the resulting sequence into complex content (or simple 
content in other contexts) are conceptually distinct steps.

To be more concrete, I might have made the conceptual leap if the wording had 
been more like

&quot;The content of the variable-binding element is a sequence constructor; a new 
document (referred to as a temporary tree) is constructed with a document node 
having as its children the sequence of nodes that results from evaluating the 
sequence constructor &lt;add&gt;followed by coercion of the constructed sequence to 
complex content according to section 5.7.1.&lt;/add&gt;&quot;

A bit of a mouthful, I know.

Thanks.

David Holmes
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4665</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-07-14 22:18:31 +0000</bug_when>
    <thetext>Following XSL Working Group discussion, I&apos;ve amended the text in question to read:

&quot;... having as its children the sequence of nodes that results from evaluating
the sequence constructor and then applying the rules given in [5.7.1
Constructing Complex Content].&quot;

I hope that this meets your concerns. In anticipation of your approval I&apos;m
marking the issue as closed, but please feel free to reopen it if you&apos;re not
satisfied with the resolution.

Michael Kay
for the XSL Working Group</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>