2008/5/29 Michael Kay <mike(_at_)saxonica(_dot_)com>:
Equally adjacent text nodes are merged, so nested value-of's
are pointless:
<xsl:value-of separator="xx">
<xsl:value-of select="/root/node[1]"/>
<xsl:value-of select="/root/node[2]"/> </xsl:value-of>
...here the output is "foobar" as "foo" and "bar" are merged
before the outer value-of gets to them.
No, that's not quite true.
[snip]
Adjacent text nodes are merged only by an operation that merges them, for
example <xsl:element> or <xsl:value-of>.
Ahh, ok - so the outer value-of does the merging then applies the seperator.
So that should read:
"the output is "foobar" as the adjacent text nodes "foo" and "bar" are
merged by the outer value-of before it applies the seperator"
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--