[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] indexterm reference to a table
Yes, there is a way, using the <see> element in an indexterm and a customization. For example, if you create an indexterm like this: <indexterm> <primary>foobar</primary> <see><xref xrefstyle="select: label nopage" linkend="tablexref"/></see> </indexterm> And then add this template to your customization layer: <xsl:template match="indexterm" mode="index-see"> <xsl:param name="scope" select="."/> <xsl:param name="role" select="''"/> <xsl:param name="type" select="''"/> <fo:inline> <xsl:text>, </xsl:text> <xsl:call-template name="gentext"> <xsl:with-param name="key" select="'see'"/> </xsl:call-template> <xsl:text> </xsl:text> <xsl:apply-templates select="see/node()"/> <xsl:text></xsl:text> </fo:inline> </xsl:template> You will get an index entry in your index that looks like this: foobar, see Table 1.2 And "Table 1.2" is a hot link to the table. The customization changed the processing of the <see> element from just copying its text value to processing its children instead. If the child element is an xref, then you get a hot link. If the child is just text, then you get the normal output. I used an xrefstyle attribute in the xref to shorten the reference to just the label rather than the label and title, and to remove the page number reference for the xref. Is this what you were looking for? Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Cheryl Chase" <cheryl@isna.org> To: <docbook-apps@lists.oasis-open.org> Sent: Monday, September 12, 2005 5:24 PM Subject: [docbook-apps] indexterm reference to a table > Is there a way to get an indexterm to reference a table, rather than > a page? > > THanks, > Cheryl > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]