Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.9
-
None
-
win2k on ix86.
Description
Consider the following stylesheet (the actual input document does not matter):
<?xml version="1.0" encoding = "ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common">
<xsl:template match="/">
<xsl:call-template name="T1">
<xsl:with-param name="foobar" select="."/>
</xsl:call-template>
</xsl:template>
<xsl:template name="T1">
<xsl:with-param name="foobar"/>
<!-- Should have been xsl:param !!! -->
<!-- This should cause an error, not a crash. -->
</xsl:template>
</xsl:stylesheet>
Xalan should report an error when xsl:with-param is used instead of xsl:param in the declaration of template "T1".
Instead, this leads to a crash when the template is called.
Best regards,
Alain Le Guennec.