Hi,
I'm a little surprised this could even run. It was my understanding
that > must be escaped if inside a test to > making this line:
<xsl:when test="$COUNT>$COLS">
into
<xsl:when test="$COUNT > $COLS">
besides for that I do not see anything else. Have you tried it with
another XSLT parser to verify it is a bug?
-matt
On Fri, Mar 30, 2001 at 06:08:26PM +0200, Lambert Dominique wrote:
> Hello,
> I'm Using Sablotron 5.0
>
> With this XML flux:
> <flux_xml>
> <TABLEAU ID="C2TAB147">
> <TGROUP COLS="6" ALIGN="CENTER" CHAROFF="50" CHAR="">
> <TBODY VALIGN="TOP">
> ...
> </TBODY>
> </TGROUP>
> </TABLEAU>
> </flux_xml>
>
> With this XSL steelsheet
> <xsl:template name="GENERATE.COLGROUPE">
> <xsl:param name="COLS" select="1"/>
> <xsl:param name="COUNT" select="1"/>
> <xsl:choose>
> <xsl:when test="$COUNT>$COLS"><p><xsl:value-of select="$COUNT"/> sup?rieur ?
><xsl:value-of select="$COLS"/></p></xsl:when>
> <xsl:otherwise>
> <xsl:call-template name="GENERATE.COLGROUPE">
> <xsl:with-param name="COLS" select="$COLS"/>
> <xsl:with-param name="COUNT" select="$COUNT+1"/>
> </xsl:call-template>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
>
> when I use this call
> <xsl:call-template name="GENERATE.COLGROUPE">
> <xsl:with-param name="COLS" select="@COLS"/>
> </xsl:call-template>
>
> Sablotron loops because the test <xsl:when test="$COUNT>$COLS"> is not correct.
>
> If I use this call
> <xsl:call-template name="GENERATE.COLGROUPE">
> <xsl:with-param name="COLS" select="6"/>
> </xsl:call-template>
>
> There is no loop.
>
> So i think there's a bug with <xsl:with-param name="COLS" select="@COLS"/>
>
> Do you know this probl?me, if yes is there a solution?
>
> Thanks for all your help!
>
>
>