xsl-list
[Top] [All Lists]

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

2005-04-21 09:03:00
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



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>