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[(_at_)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[(_at_)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
--~------------------------------------------------------------------
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>
--~--