[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: updating a param value for recursion [new problem

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.