github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/bug-48-.xsl (about)

     1  <?xml version='1.0'?>
     2  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     3                  version='1.0'>
     4  
     5  <xsl:template name="empty">
     6  </xsl:template>
     7  
     8  <xsl:template name="test">
     9  <xsl:text>SUCCESS</xsl:text>
    10  </xsl:template>
    11  
    12  <xsl:template match="/">
    13  <xsl:variable name="foo">
    14  <xsl:call-template name="test"/>
    15  </xsl:variable>
    16  <xsl:if test="1">
    17  <xsl:apply-templates select="doc" name="empty">
    18  <xsl:with-param name="unused" select="$foo"/>
    19  </xsl:apply-templates>
    20  </xsl:if>
    21  <xsl:value-of select="$foo"/>
    22  </xsl:template>
    23  
    24  </xsl:stylesheet>