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

     1  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     2  
     3  <xsl:template match="para">
     4     
     5    <xsl:choose>
     6      <xsl:when test="@bold='true'">
     7        <p><b><xsl:number count="para" format="1. "/> <xsl:apply-templates/></b></p>
     8      </xsl:when>
     9      <xsl:otherwise>
    10        <p><xsl:number count="para" format="1. "/> <xsl:apply-templates/></p>
    11      </xsl:otherwise>
    12    </xsl:choose>
    13  
    14  </xsl:template>
    15  
    16  <xsl:template match="/">
    17    <html><body>
    18      <xsl:apply-templates/>
    19    </body></html>
    20  </xsl:template>
    21  
    22  </xsl:stylesheet>