[Home] [By Thread] [By Date] [Recent Entries]
At 2004-09-21 17:16 -0300, IceT wrote:
I want to put in a variable "x" all the content of the "name" elements. The following code didn't do the trick Even if it did get all names, they would also be concatenated and you wouldn't determine word boundaries. How about: <xsl:variable name="x-rtf">
<xsl:for-each select="//name">
<xsl:value-of select="."/>
<!--ensure a space between the end of the previous word to the
start of the next word-->
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="x" select="string($x-rtf)"/>I hope this helps. ........................ Ken -- World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



