[xsl] Re: how to get string value of element node without children concatenated

Subject: [xsl] Re: how to get string value of element node without children concatenated
From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
Date: Fri, 14 Mar 2003 23:23:45 +0100
> Use
>
> select="normalize-space(text())" in your value-of to get what you want.
>
> Jeff

Jeff,

This will produce only the value of the (normalised) first text node child
of the current node.

To produce the text of all text-node children, one of the following can be
used:


   <xsl:copy-of select="text()"/>

or

   <xsl:apply-templates select="text()"/>

(assuming that no template matching text() is specified and we leave this to
the default rule).



=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread