Re: [xsl] replacement example , help

Subject: Re: [xsl] replacement example , help
From: omprakash.v@xxxxxxxxxxxxx
Date: Tue, 29 Mar 2005 17:10:21 +0530
         You have a named template and you have the call to the template
inside the named template.

What you shoud be doing is something like:

<xsl:template match="/">

<xsl:template match="part1">
<xsl:call-template name="part1"/>
     <xsl:with-param ... etc

You may want to rename your named-template to something other than part1


                    henry human                                                                                    
                    <henry_human@        To:     xsl-list@xxxxxxxxxxxxxxxxxxxxxx                                   
          >            cc:     (bcc: omprakash.v/Polaris)                                        
                                         Subject:     [xsl]  replacement example , help                            
                    04:31 PM                                                                                       
                    respond to                                                                                     

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"?>



<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"/>




Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier

This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. 
If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately.
You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification,
distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit Us at

Current Thread