This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: string replacement
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] string replacement
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 25 Jun 2001 09:10:46 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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