[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] text() handling


Subject: [xsl] text() handling
From: "Robert Soesemann" <rsoesemann@xxxxxxxxxxx>
Date: Fri, 14 Jan 2005 16:43:19 +0100

After a day of trial and error I give up.

Why does:

<xsl:template match="person/text()">
	David
	<xsl:apply-templates/>
</xsl:template>

easily overwrite all <person> text nodes with the value "David",..
but

<xsl:template match="person/text()[.="Peter"]">
	David
	<xsl:apply-templates/>
</xsl:template>

Not overwrite every <person>Peter</person> with
<person>David</person>????

I am just stuck.

Robert


Current Thread