Subject: 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 |
XSLList - Fri, 14 Mar 2003 16:49:01 -0500 (EST)
- Dimitre Novatchev - Fri, 14 Mar 2003 17:06:27 -0500 (EST) <=
Peter Flynn - Sat, 15 Mar 2003 18:27:36 -0500 (EST)
Piez Janet - Fri, 14 Mar 2003 16:56:10 -0500 (EST)
|
|