<xsl:function name="func:generateIndex">
<xsl:param name="books"/>
<!-- Index -->
<xsl:for-each select="$books">
<xsl:call-template name="createIndexItem">
<xsl:with-param name="bookAnchor" select="@anchor"/>
<xsl:with-param name="bookName" select="title"/>
<xsl:with-param name="bookAuthor" select="author"/>
</xsl:call-template>
</xsl:for-each>
</xsl:function> |