Subject: Re: [xsl] Is the a way to hide index information that is contained in linked data? From: Geert Josten <Geert.Josten@xxxxxxxxxxx> Date: Wed, 15 Dec 2004 19:20:26 +0100 |
<!-- filter out unwanted text --> <xsl:template match="indexterm" mode="filter" />
Grtz, Geert
Hello,
I am having an issue with index information that is contained within linked-to elements. When I display the information in the link, it is picking up the <indexterm> data from within the linked element. Xml, output description and xslt coding attached. All suggestions are appreciated.
Betty
XML Example: <chapter id="T01"> <title> Using the Text</title> <sect1 id="T01-01"> <title>Overview</title> <para>This chapter describes the following:</para> <unorderedlist> <listitem label="bullet"> <para> <autoxref linkend="T01-04" format="Heading"/> </para> </listitem> <listitem label="bullet"> <para> <autoxref linkend="T01-05" format="Heading"/> </para> </listitem> </sect1> <sect1 id="T01-04"> <title>Using the Text</title> <para>All of the applications installed on your common interface. The following sections provide information to help you interpret the interface.</para> <sect2 id="T01-04-01"> <title>The <indexterm>TEXT:interface;interface, for the TEXT</indexterm>TEXT Interface</title> <para>Although each application has a unique function on the TEXT, they all conform to standard interface guidelines </para> _________________________________
When displaying in the browser the link comes out as: Using the Text Overview
This chapter describes the following:
. The TEXT:interface;interface, for the TEXT TEXT Interface <-- highlighted information is the data from the linked information . initializing flights;flights:initializing Initializing a Flight <-- Italized information is the data that should be displayed (only)
Using the Text All of the applications installed on your common interface. The following sections provide information to help you interpret the interface.
The TEXT Interface Although each application has a unique function on the TEXT, they all conform to standard interface guidelines
Initializing a Flight ________________________________
My xslt code for the hyperlinks
<xsl:template match="autoxref"> <xsl:variable name="linkName"> <xsl:value-of select="@linkend"/> </xsl:variable> <xsl:choose> <xsl:when test="@format = 'HeadingPage'"> <span> <a href="#{@linkend}" style="color:blue"> <xsl:value-of select="key('setKey',@linkend)/title"/> <xsl:value-of select="title"/> (Note have tried with <xsl:value-of select= "."/> as well) (also tried using <xsl:apply-templates/> in next when statement) </a> </span> </xsl:when> <xsl:when test="@format = 'Heading'"> <span> <a href="#{@linkend}" style="color:blue"> <xsl:value-of select="key('setKey',@linkend)/title"/> <xsl:apply-templates/> <!--xsl:value-of select="."/--> </a> </span> </xsl:when> </xsl:choose> </xsl:template>
-- Geert.Josten@xxxxxxxxxxx IT-consultant at Daidalos BV, Zoetermeer (NL)
http://www.daidalos.nl/ tel:+31-(0)79-3316961 fax:+31-(0)79-3316464
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Is the a way to hide index in, Betty . Risher | Thread | RE: [xsl] Best way to count sibling, Jarno.Elovirta |
Re: [xsl] Space after <a> tag in te, Geert Josten | Date | Re: [xsl] Tree from directory listi, Geert Josten |
Month |