You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/10/25 20:15:22 UTC
DO NOT REPLY [Bug 4428] New: -
Cannot use variable substitution inside the decimal-format parameters
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: xalan-dev@xml.apache.org
ReportedBy: vicentesalvador@netscape.net
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.