</xsl:template>
<xsl:template match="glossentry/glossterm" mode="glossary.as.list">
- <xsl:apply-templates/>
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+ <fo:inline id="{$id}">
+ <xsl:apply-templates/>
+ </fo:inline>
<xsl:if test="following-sibling::glossterm">, </xsl:if>
</xsl:template>
</xsl:call-template>
<xsl:choose>
<xsl:when test="$target">
- <xsl:apply-templates select="$target" mode="xref-to"/>
+ <fo:basic-link internal-destination="{$otherterm}"
+ xsl:use-attribute-sets="xref.properties">
+ <xsl:apply-templates select="$target" mode="xref-to"/>
+ </fo:basic-link>
</xsl:when>
<xsl:when test="$otherterm != '' and not($target)">
<xsl:message>
<xsl:choose>
<xsl:when test="$target">
- <xsl:apply-templates select="$target" mode="xref-to"/>
+ <fo:basic-link internal-destination="{$otherterm}"
+ xsl:use-attribute-sets="xref.properties">
+ <xsl:apply-templates select="$target" mode="xref-to"/>
+ </fo:basic-link>
</xsl:when>
<xsl:when test="$otherterm != '' and not($target)">
<xsl:message>
</xsl:variable>
<fo:block xsl:use-attribute-sets="list.item.spacing"
- keep-with-next.within-column="always"
- keep-together.within-column="always">
+ keep-with-next.within-column="always"
+ keep-together.within-column="always">
<xsl:call-template name="anchor">
<xsl:with-param name="conditional">
<xsl:choose>
</xsl:template>
<xsl:template match="glossentry/glossterm" mode="glossary.as.blocks">
- <xsl:apply-templates/>
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+ <fo:inline id="{$id}">
+ <xsl:apply-templates/>
+ </fo:inline>
<xsl:if test="following-sibling::glossterm">, </xsl:if>
</xsl:template>
</xsl:call-template>
<xsl:choose>
<xsl:when test="$target">
- <xsl:apply-templates select="$target" mode="xref-to"/>
+ <fo:basic-link internal-destination="{$otherterm}"
+ xsl:use-attribute-sets="xref.properties">
+ <xsl:apply-templates select="$target" mode="xref-to"/>
+ </fo:basic-link>
</xsl:when>
<xsl:when test="$otherterm != '' and not($target)">
<xsl:message>
<xsl:choose>
<xsl:when test="$target">
- <xsl:apply-templates select="$target" mode="xref-to"/>
+ <fo:basic-link internal-destination="{$otherterm}"
+ xsl:use-attribute-sets="xref.properties">
+ <xsl:apply-templates select="$target" mode="xref-to"/>
+ </fo:basic-link>
</xsl:when>
<xsl:when test="$otherterm != '' and not($target)">
<xsl:message>