PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3544 *** shadow/3544 Tue Sep 11 02:31:35 2001 --- shadow/3544.tmp.24369 Tue Sep 11 02:31:35 2001 *************** *** 0 **** --- 1,74 ---- + +============================================================================+ + | Core-dump with Xalan C++ on HP/UX with undefined variables | + +----------------------------------------------------------------------------+ + | Bug #: 3544 Product: XalanC | + | Status: NEW Version: 1.2.x | + | Resolution: Platform: HP | + | Severity: Major OS/Version: HP-UX | + | Priority: Other Component: XalanC | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + Hi + + Following xsl causes a core dump on HP/UX 11 with XalanC++ v1.2: + + <?xml version="1.0"?> + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + <xsl:template match="doc"> + <out> + <xsl:value-of select="."/> + <xsl:call-template name="subtmpl1"> + <xsl:with-param name="myparam1"> + some param + </xsl:with-param> + </xsl:call-template> + </out> + </xsl:template> + + <xsl:template name="subtmpl1"> + <xsl:param name="myparam1"/> + <xsl:call-template name="subtmpl2"> + <xsl:with-param name="myparam2"> + <xsl:value-of select="$myparam"/> + <!-- typo! should be $myparam1 --> + </xsl:with-param> + </xsl:call-template> + </xsl:template> + + <xsl:template name="subtmpl2"> + <xsl:param name="myparam2"/> + <xsl:value-of select="$myparam2"/> + </xsl:template> + + </xsl:stylesheet> + + And the xml can be anything, like: + + <?xml version="1.0"?> + <doc>Hello</doc> + + Heres output from testXSLT: + + ========= Parsing xml/foo.xsl ========== + Parse of xml/foo.xsl took 20 milliseconds + ========= Parsing xml/foo.xml ========== + Parse of xml/foo.xml took 10 milliseconds + ============================= + Transforming... + XSL Error: Variable reference given for variable out of context or without + definition! Name = 'myparam', line -1, offset -1 + Abort(coredump) + ---------- + + When using Xalan from an application, no exceptions are thrown to the + application level. + + Regards, + + Mika Stewen
