DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4428>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4428

Cannot use variable substitution inside the decimal-format parameters

           Summary: Cannot use variable substitution inside the decimal-
                    format parameters
           Product: XalanJ2
           Version: 2.2.x
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This sintaxis:

<xsl:variable name="decimal_separator" select="doc/locale/decimal_separator"/>
<xsl:variable name="grouping_separator" select="doc/locale/grouping_separator"/>
<xsl:decimal-format decimal-separator="{$decimal-separator}"
grouping-separator="{$grouping-separator}" />

Gives the error:

javax.xml.transform.TransformerConfigurationException:
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: An XSLT attribute of type T_CHAR must
be only 1 character!

        at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:946)

        at jas.core.servlet.srv_applyxsl.a(srv_applyxsl.java:532)

        at jas.core.servlet.srv_applyxsl.transform(srv_applyxsl.java:355)

...skipped...

This is because the length of the parameter is evaluated before the variable
substitution.

Reply via email to