Subject: Re: [xsl] collapsing number ranges From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx> Date: Sun, 29 Aug 2004 09:11:19 -0400 |
<xsl:choose> <xsl:when test="$begin idiv 100 eq $end idiv 100"> <xsl:value-of select="$end mod 100" /> </xsl:when> <xsl:otherwise> <xsl:value-of select="$end" /> </xsl:otherwise> </xsl:choose>
$begin idiv 100 gives you all but the last two digits of $begin. $end mod 100 gives you the last two digits of $end.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] collapsing number ranges, Jeni Tennison | Thread | Re: [xsl] collapsing number ranges, Jeni Tennison |
Re: [xsl] grouping and context (?), David Carlisle | Date | RE: [xsl] variable question, Michael Kay |
Month |