[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: collapsing number ranges
On Aug 29, 2004, at 5:55 AM, Jeni Tennison wrote:
<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> Nice! Any pointers on where to find out more about how to use idiv, mod, etc.? I'd like to get a better sense of the basics: the logic that explains how the above works (e.g. what's going on with the "div 100" that gives me the last two digits, what does mod do, etc.). The xpath 2.0 spec isn't all that helpful for me. Bruce
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|