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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

Reply via email to