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=5922>. 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=5922 top-level variable cannot access imported parameter Summary: top-level variable cannot access imported parameter Product: XalanJ2 Version: 2.2.0 Platform: All OS/Version: Other Status: NEW Severity: Blocker Priority: Other Component: Xalan-Xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] When a top-level variable declaration makes use of a top-level parameter from an imported stylesheet, the stylesheet cannot be compiled. Example: *********************************** Test1.xsl *********************************** <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="Test2.xsl"/> <xsl:variable name="filepath" select="concat($path,'/foo')"/> </xsl:stylesheet> *********************************** Test2.xsl *********************************** <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="path">/tmp</xsl:param> </xsl:stylesheet> If the concat function is removed, the stylesheet compiles OK and if the parameter is declared in the top level stylesheet (Test1), it also compiles OK.
