Re: collapsing number ranges
<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>
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.
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