RE: [xsl] replacement example , help

Subject: RE: [xsl] replacement example , help
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Tue, 29 Mar 2005 16:51:07 +0000
Henry, search this list for references to "XSLT Cookbook"; that book, and its freely downloadable code, contains many recipes for string matching, replacement, etc.



From: henry human <henry_human@xxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl]  replacement example , help
Date: Tue, 29 Mar 2005 13:01:06 +0200 (CEST)

In this xsl styesheet i will replace aa with the
string cc,
what do i wrong ,that
i dont get cc?
thank you to have a look on this stylesheet:

<?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="replace.xsl"?>

<document> <part1> <name>uaabb</name> </part1> </document>


<xsl:stylesheet version="1.0"
<xsl:output method="html"/>

<xsl:template name="part1">
<xsl:param name="name"/>
<xsl:param name="aa"/>
<xsl:param name="cc"/>
<xsl:when test="contains($name,$aa)">
<xsl:value-of select="substring-before($name,$aa)"/>
<xsl:value-of select="$cc"/>

<xsl:call-template name="part1">
<xsl:with-param name="name"
<xsl:with-param name="aa" select="$aa"/>
<xsl:with-param name="cc" select="$cc"/>


<xsl:value-of select="$name"/>




FREE pop-up blocking with the new MSN Toolbar  get it now!

Current Thread