Uploaded image for project: 'XalanC'
  1. XalanC
  2. XALANC-543

Crash when calling a template that wrongly uses xsl:with-param instead of xsl:param to declare its parameter.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: CurrentCVS
    • Component/s: XalanC
    • Labels:
      None
    • Environment:
      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.

        Attachments

        1. patch.txt
          1 kB
          David N Bertoni

          Activity

            People

            • Assignee:
              dbertoni David N Bertoni
              Reporter:
              aleguenn@free.fr Alain Le Guennec
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: