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

     1  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
     2  <xsl:strip-space elements="*"/>
     3  
     4  <xsl:template match="foo">
     5    <FOO>
     6      <xsl:apply-templates/>
     7    </FOO>
     8  </xsl:template>
     9  
    10  <xsl:template match="bar">
    11    <BAR INDEX="{position()}">
    12      <xsl:value-of select="."/>
    13    </BAR>
    14  </xsl:template>
    15  
    16  </xsl:stylesheet>