W3C home > Mailing lists > Public > public-qt-comments@w3.org > December 2006

[Bug 4031] Final Result Trees

From: <bugzilla@wiggum.w3.org>
Date: Sat, 16 Dec 2006 05:28:54 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1GvS6Q-000422-Ee@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4031





------- Comment #10 from mukul_gandhi@yahoo.com  2006-12-16 05:28 -------
Thanks a lot for clarification. As per your clarifications below, I think, the
paragraph I cited below from Section 19 could be written as:

"A final result tree can be created explicitly, by evaluating an
xsl:result-document instruction. A final result tree is also created implicitly
if no xsl:result-document instruction is evaluated."

(I have dropped the part - "or if the result of evaluating the initial template
is a non-empty sequence")

This I think will be more clear to readers.

I would also like to see your comments (Comment #5) appear as editorial
changes. 

Regards,
Mukul

(In reply to comment #9)
> >But I am still not convinced by this sentence in Section "19 Final Result Trees" (please read my comment #0):
> >"A final result tree can be created explicitly, by evaluating an xsl:result-document instruction. A final result tree is also created implicitly if no xsl:result-document instruction is evaluated, or if the result of evaluating the initial template is a non-empty sequence."
> Consider the following cases:
> (a)
> <xsl:template match="/"/>
> (b)
> <xsl:template match="/">
>   <xsl:result-document><a/></xsl:result-document>
> </xsl:template>
> (c)
> <xsl:template match="/">
>   <a/>
> </xsl:template>
> (d)
> <xsl:template match="/">
>   <a/>
>   <xsl:result-document href="2.xml"><a/></xsl:result-document>
> </xsl:template>
> An implicit result tree is created in cases (a), (c), and (d), but not in case
> (b). In case (a) it is created because no xsl:result-document instruction has
> been executed. In cases (c) and (d) it is created because the result of the
> initial template is non-empty. It is only necessary for one of these conditions
> to be true. If we said "and", then it would be necessary for both conditions to
> be true, which means we would not create an implicit result tree in case (a).
> But we made a deliberate and conscious decision that we should create an
> implicit result tree (containing a document node with no children) in case (a),
> partly for backwards compatibility and partly because it seems the right thing
> to do.
Received on Saturday, 16 December 2006 05:29:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:16 UTC