set decimal-format through variable in XSLT

Discussion in 'XML' started by Tobias, Sep 1, 2005.

  1. Tobias

    Tobias Guest

    Hi all,

    is it possible to set decimal-format in any way by using a variable or
    similar?

    Example:
    <xsl:variable name="myseparator" select="@separator"/>
    <xsl:decimal-format group-separator="{$myseparator}"/>

    The error I get (with xalan):
    "The element 'xsl:decimal-format' has an attribute 'grouping-separator'
    with an illegal value of '$grouping_separator"

    Setting the decimal-format via a xsl:attribute is not possible also.

    Any hints appreciated.

    Cheers,
    Tobias
     
    Tobias, Sep 1, 2005
    #1
    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. shannon
    Replies:
    1
    Views:
    8,603
  2. shannon
    Replies:
    0
    Views:
    574
    shannon
    Feb 1, 2006
  3. Ven
    Replies:
    3
    Views:
    1,330
  4. Gilbert Fine
    Replies:
    8
    Views:
    904
    Zentrader
    Aug 1, 2007
  5. Fei Liu
    Replies:
    21
    Views:
    2,379
    John Bokma
    Dec 16, 2006
Loading...

Share This Page