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

Discussion in 'XML' started by mathieu, Jan 6, 2007.

  1. mathieu

    mathieu Guest

    mathieu, Jan 6, 2007
    #1
    1. Advertising

  2. mathieu

    mathieu Guest

    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-list/archives/200012/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-list/archives/200010/msg00174.html

    Mathieu
    mathieu, Jan 6, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. baumann@pan

    printf("%#04x\n", 0); print 0000 not 0x00

    baumann@pan, Jul 1, 2005, in forum: C Programming
    Replies:
    8
    Views:
    615
    Lawrence Kirby
    Jul 4, 2005
  2. muss
    Replies:
    13
    Views:
    717
    Vladimir S. Oka
    Mar 27, 2006
  3. Replies:
    14
    Views:
    1,038
    Simon Biber
    Nov 16, 2006
  4. Bob Sanders
    Replies:
    5
    Views:
    217
    Ryan Lewis
    May 30, 2008
  5. Fei Liu
    Replies:
    21
    Views:
    2,363
    John Bokma
    Dec 16, 2006
Loading...

Share This Page