[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: recursive loop in XSL stylesheet is failing
Thanks, David.
You are right, I do not want that the two params hold the same value. So, I guess instead of ... <xsl:template match="Entry"> <xsl:variable name="catid" select="CategoryID"/> <xsl:param name="parentcatid" select="document('Categories.xml')/Categories/Category[@ID=$catid]/@ParentID"/> <xsl:param name="parentcat"><xsl:value-of select="CategoryName"/></xsl:param> <xsl:call-template name="ParentCategories"> <xsl:with-param name="parentcatid" select="."/> <xsl:with-param name="parentcat" select="."/> </xsl:call-template> ... I have to put it like that ... <xsl:template match="Entry"> <xsl:variable name="catid" select="CategoryID"/> <xsl:call-template name="ParentCategories"> <xsl:with-param name="parentcatid" select="document('Categories.xml')/Categories/Category[@ID=$catid]/@ParentID"/> <xsl:with-param name="parentcat" select="select="CategoryName""/> </xsl:call-template> ... How can I update a var with each cycle of the iterative loop? It should be something like: $i = $i + '' Thanks in advance. George
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|