Re: [xsl] updating a param value for recursion [new problem arisen]

Subject: Re: [xsl] updating a param value for recursion [new problem arisen]
From: RahilQ <qamar_rahil@xxxxxxxxxxx>
Date: Thu, 21 Apr 2005 17:03:00 +0100
Hi

Theres a strange problem thats developed in the output I receive from the recursion.

This is what I get:

<Value ref="at1000">First</Value>&gt;
<Value ref="at2000">Second</Value>&gt;
<Value ref="at3000">Third</Value>

I dont understand where the ' &gt; ' is being generated from. Has it got anything to do with the fact that broadly my code structure is of the form:

<xsl:template>
   .....
   <xsl:when --something-->
         <xsl:call-template name="a"/>
....
</xsl:template>

<xsl:template name="a">
.....
<xsl:when --something-->
<xsl:call-template name="b"/>
....
</xsl:when>
<xsl:otherwise><xsl:call-template name="a"/></xsl:otherwise>
</xsl:template>


<xsl:template name="b">
   .....
   <xsl:when --something-->
         <Value> ....... </Value>
....
</xsl:template>

Could someone please help.

Thanks
Rahil


RahilQ wrote:


Oh great! Its working perfectly now.

Thanks a lot
Rahil

David Carlisle wrote:



so when you call the template you need to pass a param of that name

<xsl:call-template name="atCodes">
<xsl:with-param name="intem" ^^^^ should be atStr
<!--Generates

Current Thread