[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: toc for glossary
��� <!-- writes a table of contents for the glossary -->
��� <xsl:template match="d:glossary|d:glossdiv|d:glossentry|d:glossterm" mode="toc">
��� ��� <xsl:param name="toc-context" select="."/>
��� ��� <xsl:variable name="id">
��� ��� ��� <xsl:call-template name="object.id"/>
��� ��� </xsl:variable>
��� ��� <xsl:variable name="cid">
��� ��� ��� <xsl:call-template name="object.id">
��� ��� ��� ��� <xsl:with-param name="object" select="$toc-context"/>
��� ��� ��� </xsl:call-template>
��� ��� </xsl:variable>
��� ��� <xsl:call-template name="toc.line">
��� ��� ��� <xsl:with-param name="toc-context" select="$toc-context"/>
��� ��� </xsl:call-template>
��� ��� <xsl:variable name="nodes" select="d:glossary|d:glossdiv|d:glossentry"/>
��� ��� <xsl:variable name="depth.from.context"
��� ��� ��� select="count(ancestor::*)-count($toc-context/ancestor::*)"/>
��� ��� <xsl:if
��� ��� ��� test="$toc.section.depth > 0
��� ��� ��� and $toc.max.depth > $depth.from.context
��� ��� ��� and $nodes">
��� ��� ��� <fo:block id="toc.{$cid}.{$id}">
��� ��� ��� ��� <xsl:attribute name="margin-{$direction.align.start}">
��� ��� ��� ��� ��� <xsl:call-template name="set.toc.indent"/>
��� ��� ��� ��� </xsl:attribute>
��� ��� ��� ��� <xsl:apply-templates select="$nodes" mode="toc">
��� ��� ��� ��� ��� <xsl:with-param name="toc-context" select="$toc-context"/>
��� ��� ��� ��� </xsl:apply-templates>
��� ��� ��� </fo:block>
��� ��� </xsl:if>
��� </xsl:template>
Request for label of unexpected element: glossdiv
Request for label of unexpected element: glossentry
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]