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 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|Blocker |Major Priority|Other |Medium ------- Additional Comments From [EMAIL PROTECTED] 2002-01-29 20:11 ------- I verified this problem. It does go away if you eliminate the 'concat' function within the select expression. So, the following works <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="Test2.xsl"/> <xsl:variable name="filepath" select="$path"/> <xsl:template match="/"> <xsl:value-of select="$filepath" /> </xsl:template> </xsl:stylesheet> The following also works <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:param name="path">/tmp</xsl:param> <xsl:variable name="filepath" select="concat($path, '/foo')"/> <xsl:template match="/"> <xsl:value-of select="$filepath" /> </xsl:template> </xsl:stylesheet> But if the statement <xsl:param name="path">/tmp</xsl:param> is in an imported stylesheet, the statement <xsl:variable name="filepath" select="concat($path, '/foo')"/> fails. So I just confirming what Chris McCabe found, which is a rather curious interaction between the concat function and a param defined in an imported stylesheet. I'm setting the priority to Medium and the severity to Major (rather than blocker) because I don't think this problem would be that common in practice, and there is a good chance a user could work around it.
