RE: [xsl] string replacement

Subject: RE: [xsl] string replacement
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 25 Jun 2001 09:10:46 +0100
> hai every boby,I got A PROBLEM I WANT
>
> <Value DataType="STRING">VARCHAR2</Value> TO BE
> REPLACED BY
>
> <Value DataType="STRING">VARCHAR</Value>
>
Try:

<xsl:template match="Value[@DataType='STRING']/text()[.='VARCHAR2']">
<xsl:text>VARCHAR</xsl:text>
</xsl:template>

That will work assuming you want all other nodes to be copied unchanged and
assuming your stylesheet uses an identity template rule to match all other
nodes.

Mike Kay



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


Current Thread