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

     1  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     2                  version="1.0" > 
     3  
     4  <xsl:output method = "text" /> 
     5  
     6  <xsl:template match = "/" > 
     7          <xsl:apply-templates select = "//BBB" /> 
     8  </xsl:template> 
     9  
    10  <xsl:template match = "BBB" > 
    11          <xsl:text>
    12           BBB[</xsl:text> 
    13                                                                                     
    14  <xsl:value-of select = "position()" /> 
    15                                                                                     
    16  <xsl:text >]: </xsl:text> 
    17                                                                                     
    18  <xsl:value-of select = "." /> 
    19  </xsl:template> 
    20  
    21  </xsl:stylesheet> 
    22