T
timothy ma and constance lee
I try to generate the drop down using
<xsl:template name="generateDropdown">
<xslaram name="length" />
<xsl:if test="$length > 0">
<option value="{$length}"><xsl:value-of
select="$length" /></option>
<xsl:call-template name="generateDropdown">
<xsl:with-param name="length" select="$length -
1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
Can I generate it from ascending order?
<xsl:template name="generateDropdown">
<xslaram name="length" />
<xsl:if test="$length > 0">
<option value="{$length}"><xsl:value-of
select="$length" /></option>
<xsl:call-template name="generateDropdown">
<xsl:with-param name="length" select="$length -
1"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
Can I generate it from ascending order?