1)if i have a <div></div> (div wit nohgiht in between)
how can i make it t ostay as it is in the transformation so i wont get <div/> ???
2)how can i maintain the next code so it will be in 1 line and wont break to lines as the number of loops :
pager">
<xsl:call-template name="for.loop">
<xsl:with-param name="i">1</xsl:with-param>
<xsl:with-param name="count"><xsl:value-of select="count(//GamesZone/GameType[@Ref='1']/Category[@id=$CatId]/Game)"/></xsl:with-param>
</xsl:call-template>
<!--li class="active">1</li-->
</ul>
and the template===>>>>
<xsl:template name="for.loop">
<xslaram name="i" />
<xslaram name="count" />
<!--begin_: Line_by_Line_Output -->
<xsl:if test="($i <= $count) and ($i mod 5=1)">
<li class="active"><xsl:value-of select="floor($i div 5)+1" /></li>
</xsl:if>
<!--begin_: RepeatTheLoopUntilFinished-->
<xsl:if test="$i <= $count">
<xsl:call-template name="for.loop">
<xsl:with-param name="i">
<xsl:value-of select="$i + 1"/>
</xsl:with-param>
<xsl:with-param name="count">
<xsl:value-of select="$count"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>
how can i get this :
<ul class="pager"><li class="active">1</li><li>2></li></ul>
and not
<ul class="pager">
<li class="active">1</li>
<li>2</li>
</ul>
thnaks in advance
peleg
how can i make it t ostay as it is in the transformation so i wont get <div/> ???
2)how can i maintain the next code so it will be in 1 line and wont break to lines as the number of loops :
pager">
<xsl:call-template name="for.loop">
<xsl:with-param name="i">1</xsl:with-param>
<xsl:with-param name="count"><xsl:value-of select="count(//GamesZone/GameType[@Ref='1']/Category[@id=$CatId]/Game)"/></xsl:with-param>
</xsl:call-template>
<!--li class="active">1</li-->
</ul>
and the template===>>>>
<xsl:template name="for.loop">
<xslaram name="i" />
<xslaram name="count" />
<!--begin_: Line_by_Line_Output -->
<xsl:if test="($i <= $count) and ($i mod 5=1)">
<li class="active"><xsl:value-of select="floor($i div 5)+1" /></li>
</xsl:if>
<!--begin_: RepeatTheLoopUntilFinished-->
<xsl:if test="$i <= $count">
<xsl:call-template name="for.loop">
<xsl:with-param name="i">
<xsl:value-of select="$i + 1"/>
</xsl:with-param>
<xsl:with-param name="count">
<xsl:value-of select="$count"/>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>
how can i get this :
<ul class="pager"><li class="active">1</li><li>2></li></ul>
and not
<ul class="pager">
<li class="active">1</li>
<li>2</li>
</ul>
thnaks in advance
peleg