xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arnold, Curt" <Curt.Arn...@hyprotech.com>
Subject RE: How to process a list of non-elements
Date Tue, 14 Mar 2000 00:48:43 GMT
The way I've been using has been to use recursive named template calls.  Something like:

<xsl:template name="addDay">
	<xsl:param name="day"/>
	<xsl:param name="maxDay"/>
	<li><xsl:value-of select="$day"/></li>
	<xsl:if test="$day &lt; $maxDay">
		<xsl:call-template name="addDay">
			<xsl:with-param name="day" select="$day + 1"/>
			<xsl:with-param name="maxDay" select="$maxDay"/>
		</xsl:call-template>
	</xsl:if>
<xsl:template>


Mime
View raw message