Mode:

Compact lists

Showing:

Documentation
Parameters
Used by
References
Included from
Source
Stylesheet functions.xsl
Included from
Stylesheet version 2.0
Function func:generateIndex (books)
Documentation

Description

Generates an index for the given books.

Parameters

books The books to generate the index for.
Namespace http://oxygenxml.com/samples/books
Used by
Template
References
Template
Parameters
QName Namespace
books No namespace
Import precedence 0
Source
<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>