Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   [XSL] How to print a number in hexadecimal format: %04x ? (http://www.velocityreviews.com/forums/t392696-xsl-how-to-print-a-number-in-hexadecimal-format-04x.html)

mathieu 01-06-2007 11:18 PM

[XSL] How to print a number in hexadecimal format: %04x ?
 
Hello,

I am trying to do a printf( "%04x" ). Looking on the web I could find
the printHex:

http://www.biglist.com/lists/xsl-lis.../msg00420.html

The problem is that I cannot use the output to pass to format-number(
$x, "0000" ), since it shokes whenever the output contains [A-F].

Thanks for suggestion,
Mathieu


mathieu 01-06-2007 11:50 PM

Re: How to print a number in hexadecimal format: %04x ?
 

mathieu wrote:
> Hello,
>
> I am trying to do a printf( "%04x" ). Looking on the web I could find
> the printHex:
>
> http://www.biglist.com/lists/xsl-lis.../msg00420.html
>
> The problem is that I cannot use the output to pass to format-number(
> $x, "0000" ), since it shokes whenever the output contains [A-F].


In my case using prepend-pad was enought. Found at:

http://www.biglist.com/lists/xsl-lis.../msg00174.html

Mathieu



All times are GMT. The time now is 07:43 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.