Subject: [xsl] Decimal to hexadecimal in one function (XSLT/XPath 2) From: Yves Forkl <Y.Forkl@xxxxxx> Date: Tue, 17 Feb 2009 12:22:43 +0100 |
<xsl:function name="my:decimal-to-hex-internal" as="xs:string+"> <xsl:param name="decimalNumber"/> <xsl:variable name="hexDigits" select="'0123456789ABCDEF'"/> <xsl:if test="$decimalNumber >= 16"> <xsl:sequence select="my:decimal-to-hex-internal(floor($decimalNumber div 16))"/> </xsl:if> <xsl:sequence select="substring($hexDigits, ($decimalNumber mod 16) + 1, 1)"/> </xsl:function>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Finding Untagged content , Michael Kay | Thread | Re: [xsl] Decimal to hexadecimal in, Michael Müller-Hille |
[xsl] Finding Untagged content in X, Ganesh Babu N | Date | Re: [xsl] Decimal to hexadecimal in, Michael Müller-Hille |
Month |