Re: [xsl] Matchin elements in text nodes

Subject: Re: [xsl] Matchin elements in text nodes
From: mika.borner@xxxxxxxx
Date: Mon, 22 Jan 2001 11:59:54 +0200
Here it is, without the article typo:

 <article_date>article date</article_date>
This is the article text part 1
 <sub_heading>sub heading</sub_heading>
The article continues. This is part 2 of it

<xsl:template match="article">
<xsl:value-of select="text()"/>

As I said <xsl:value-of select=". "/> returns the content of all child elements.
But <xsl:value-of select="text()"/> returns nothing.

What I'm expecting  is just the content of the article text node.

 XSL-List info and archive:

Current Thread