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=4521>. 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=4521 xsltc fails impincl03 on params defined in imported xsl Summary: xsltc fails impincl03 on params defined in imported xsl Product: XalanJ2 Version: CurrentCVS Platform: All OS/Version: All Status: NEW Severity: Major Priority: Other Component: org.apache.xalan.xsltc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Looks like there is a newly introduced problem with params defined in an imported xsl not being recognized in the top stylesheet. Running XSLTC with Xerces Parser on impincl03 pred: pred(=(step("attribute", 9), literal-expr(1))) exp: =(step("attribute", 9), literal-expr(1)) Exception in thread "main" java.lang.NoSuchFieldError: mParam at impincl03.applyTemplates() at impincl03.transform() at org.apache.xalan.xsltc.runtime.AbstractTranslet.transform(Unknown Source) at org.apache.xalan.xsltc.cmdline.Transform.doTransform(Unknown Source) at org.apache.xalan.xsltc.cmdline.Transform.main(Unknown Source) impincl03.xsl -------------- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: IMPINCL03 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 2.6.2 --> <!-- Purpose: Nest imports and includes so that there are two of each, import on top. --> <xsl:import href="m.xsl"/> <xsl:template match="/"> <out> <xsl:value-of select="concat($mParam,$nParam,$oParam,$pParam)"/> <xsl:apply-templates/> </out> </xsl:template> <xsl:template match="title"> Main stylesheet - title: <xsl:value-of select="."/> </xsl:template> </xsl:stylesheet> m.xsl ----- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:include href="n.xsl"/> <xsl:param name="mParam" select="string('!From m!')"/> <xsl:template match="author"> m-author: <xsl:value-of select="."/> </xsl:template> </xsl:stylesheet>
