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=5328>. 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=5328 [XSLTC] xsl:param with dash in name not working Summary: [XSLTC] xsl:param with dash in name not working Product: XalanJ2 Version: 2.2.x Platform: PC OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: org.apache.xalan.xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] xsl:param does not work with XSLTC if its name contains a dash. I took a look at the code and it seems that the bug could be related to using org.apache.xalan.xsltc.compiler.util.Util.escape(String) in org.apache.xalan.xsltc.compiler.VariableBase and could affect also variables (and likewise names with dots). Here's a small example, a modified samples/SimpleTransform/foo.xsl. Nothing is output inside the <out> tags; renaming test-param to a name with no dash makes it work: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:param name="test-param" /> <xsl:template match="doc"> <out><xsl:value-of select="$test-param" /></out> </xsl:template> </xsl:stylesheet> The original XML: <?xml version="1.0"?> <doc>Hello</doc>
