Appendice 21
FOGLIO DI STILE PER LA CREAZIONE DEGLI INDICI DI NAVIGAZIONE (VERSIONE CON PARAMETRI)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="ISO-8859-1"/>
<xsl:param name="pp">Gerlando Boccadoro</xsl:param>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="text">
NOME: <b><xsl:value-of select="$pp"/></b><br/>
<xsl:for-each select="//name[@key=$pp]">
<xsl:sort select="@key"/>
<a href="baltico.htm#{@id}">capitolo <xsl:value-of select="./ancestor::div1/@id"/></a><br/>
</xsl:for-each>
occorrenze: <xsl:value-of select="count(//name[@key=$pp])"/>
</xsl:template>
</xsl:stylesheet>