Číslování

  • ruční číslování

    <xsl:number value="…" format="…"/>
  • automatické číslování

    <xsl:number count="…" from="…" level="any|single|multiple"/>

Příklad 11. cislovani.xsl

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                version="2.0">
  
<xsl:template match="*">
  <xsl:number count="*" level="multiple" format="1. "/>
  <xsl:value-of select="name()"/>
  <br/>
  <xsl:apply-templates/>
</xsl:template>  
  
<xsl:template match="text()"/>  

</xsl:stylesheet>