ChrisB: Bei Rekursion in XSLT keine Parameterübergabe.

Beitrag lesen

Hi,

Mein Debugger sagt mir, dass der Parameter bei jedem neu gefunden Match von gl wieder 0 ist. Es wird also nicht hochgezählt. Wisst ihr, wo hier mein Denkfehler liegt?

Wenn das

<xsl:if test="child::gl">

<xsl:apply-templates select="child::gl">

eintrifft, wird doch auch  

> ~~~xml

 <xsl:template match="gl">  

>   <xsl:param name="recCount" select="0"/>

wieder erneut ausgeführt.

MfG ChrisB

--
RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?