xsl-list
[Top] [All Lists]

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

2003-03-14 14:22:16

That's the correct output (according to Michael Kay's 2nd edition the
string value of an element is the string value of the
element and all it's children concatenated). But I need to get the string
value WITHOUT the concatenation.

Use:

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


I am assuming that you have no template matching text nodes. In this case
the default rule will be instantiated and all text-node children of the
current node will be output.


=====
Cheers,

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




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