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 2002/12/23 19:16:17 UTC
DO NOT REPLY [Bug 15636] New: -
XSLTC translets ignore parameters with dots in their names when they are set with Transformer.setParameter
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=15636>.
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=15636
XSLTC translets ignore parameters with dots in their names when they are set with Transformer.setParameter
Summary: XSLTC translets ignore parameters with dots in their
names when they are set with Transformer.setParameter
Product: XalanJ2
Version: 2.4
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Blocker
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: ckarras@capella.org
If a global parameter for a translet is set with Transformer.setParameter and
the parameter's name contains dots (for example $prefs.lang), the translet
doesn't get the value. However, if I remove the dot from the parameter's name,
the translet gets the value correcly.
For example:
transformer.setParameter("prefs.lang", "fr");
transformer.setParameter("prefs_lang", "fr");
If the stylesheet contains:
<xsl:param name="prefs.lang" />
<xsl:param name="prefs_lang" />
<xsl:template match="/">
prefs.lang: <xsl:value-of select="$prefs.lang" />
prefs_lang: <xsl:value-of select="$prefs_lang" />
I get the following output:
prefs.lang:
prefs_lang: fr