github.com/matislovas/ratago@v0.0.0-20240408115641-cc0857415a7a/xslt/testdata/general/bug-110.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:output method='text'/>
     6  
     7  <xsl:template match="/">
     8    <xsl:variable name="id1" select="generate-id(/root/elem)"/>
     9    <xsl:variable name="id2" select="generate-id(id('id0'))"/>
    10    <xsl:if test="$id1 = $id2">
    11      <xsl:text>SUCCESS
    12  </xsl:text>
    13    </xsl:if>
    14    <xsl:if test="$id1 != $id2">
    15      <xsl:text>ERROR
    16  </xsl:text>
    17    </xsl:if>
    18  </xsl:template>
    19  </xsl:stylesheet>
    20