xsl-list
[Top] [All Lists]

text() handling

2005-01-14 08:43:19
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>