Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#805 Incorrect optimization (in SA) of param-only template

v9.0
closed
Michael Kay
5
2012-10-08
2008-04-15
Michael Kay
No

In Saxon SA, if an XSLT template contains (2 or more) local parameters but no other instructions in its body, an incorrect optimization is applied. An example of such a template is

<xsl:template name="process-ns">
<xsl:param name="prefix"/>
<xsl:param name="uri"/>
</xsl:template>

This example comes from ISO schematron; the template exists so that it can be overridden in an importing stylesheet with one that actually does something.

Saxon attempts to extract the two xsl:param "instructions" into a global variable, and fails when evaluating this global variable.

Although the problem manifests itself in Saxon-SA only, the fix is in Saxon-B code and will be placed in Subversion.

Discussion

  • Michael Kay
    Michael Kay
    2008-05-12

    Logged In: YES
    user_id=251681
    Originator: YES

    Fixed in 9.0.0.5