xsl-list
[Top] [All Lists]

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

2003-03-14 15:23:45
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