Difference between Saxon 8.7.3 and 6.5.5

  • Dan34567

    Dan34567 - 2006-12-16

    This is probably not all that important, but I found got different output when running this transform with Saxon 8.7.3 than with Saxon 6.5.5.

    Saxon 8 output


    and Saxon 6 output nothing. I think Saxon 6 is doing the right thing because a default template for mode="test" processed the "/" node and it should not capture the test param and pass it on. It seems like in Saxon 8 the default template that processes "/" is passing on any params it sees to its children which doesn't seem to be correct.


    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template match="/">
    <xsl:apply-templates select="document('')" mode="test">
    <xsl:with-param name="test" select="'test'"/>

    <xsl:template match="*" mode="test">
    <xsl:param name="test"/>
    <xsl:value-of select="$test"/>



Log in to post a comment.