Subject: Re: [xsl] maximum depth of nested tags needed for colspan From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 07 Nov 2003 18:02:06 -0500 |
Cheers, Wendell
<xsl:template name="max"> <xsl:param name="list"/> <xsl:choose> <xsl:when test="$list"> <xsl:variable name="first" select="count($list[1]/LINE)"/> <xsl:variable name="max-of-rest"> <xsl:call-template name="max"> <xsl:with-param name="list" select="$list[position()!=1]"/> </xsl:call-template> </xsl:variable> <xsl:choose> <xsl:when test="$first > $max-of-rest"> <xsl:value-of select="$first"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="$max-of-rest"/> </xsl:otherwise> </xsl:choose> </xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:template>
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] maximum depth of nested tags , Andy Verbunt | Thread | RE: [xsl] maximum depth of nested t, bryan . s . schnabel |
RE: [xsl] Using keys to lookup from, Michael Kay | Date | Re: [xsl] Lookup without document(', Wendell Piez |
Month |