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. Advertisements

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,821
  2. shannon
    Replies:
    0
    Views:
    703
    shannon
    Feb 1, 2006
  3. Benjamin Hillsley
    Replies:
    3
    Views:
    1,903
    Dimitre Novatchev
    Sep 25, 2003
  4. Ven
    Replies:
    3
    Views:
    1,550
  5. Gilbert Fine
    Replies:
    8
    Views:
    1,169
    Zentrader
    Aug 1, 2007
  6. Vitaliy
    Replies:
    1
    Views:
    684
    Peter Otten
    May 29, 2008
  7. valpa
    Replies:
    11
    Views:
    2,271
    Steven D'Aprano
    Mar 24, 2009
  8. Fei Liu
    Replies:
    21
    Views:
    3,160
    John Bokma
    Dec 16, 2006
Loading...