This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: string replacement


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]