This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1321 - Value of Variables and Parameters (temporary trees from atoms)
Summary: Value of Variables and Parameters (temporary trees from atoms)
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 2.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-10 19:47 UTC by David Holmes
Modified: 2005-07-14 22:18 UTC (History)
0 users

See Also:


Attachments

Description David Holmes 2005-05-10 19:47:41 UTC
Section 9.3, Value of Variables and Parameters, contains the following snippet.
 
"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"
 
What happens when the sequence constructor creates atomic values? I can't find 
a prescription in the specification for how atoms become incorporated with the 
document node.
 
Thank You,
 
David Holmes
Comment 1 Michael Kay 2005-05-10 20:11:23 UTC
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'm happy to try to make the text clearer if I can, but I'm having a little
difficulty seeing how to achieve that in this case. Do you have any concrete
suggestions?

Michael Kay (personal response)
Comment 2 David Holmes 2005-05-10 22:20:59 UTC
Mike,
   I think that my expectation was that sequence constructor evaluation 
and "coercion" 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

"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 <add>followed by coercion of the constructed sequence to 
complex content according to section 5.7.1.</add>"

A bit of a mouthful, I know.

Thanks.

David Holmes
Comment 3 Michael Kay 2005-07-14 22:18:31 UTC
Following XSL Working Group discussion, I've amended the text in question to read:

"... 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]."

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

Michael Kay
for the XSL Working Group