How can I add another chunk navigation link?

Discussion in 'XML' started by Sheldon Plankton, Aug 19, 2004.

  1. I would like to add one more link to the chunk navigation. This link
    would link to a PDF version of the current page. Here's what I have
    in my local stylesheet

    <?xml version='1.0'?>
    <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl"/>


    ...
    <xsl:template name="user.footer.navigation">
    <a accesskey="n">
    <xsl:attribute name="href">
    <xsl:call-template name="href.target">
    <xsl:with-param name="object" select="."/>
    </xsl:call-template>
    </xsl:attribute>
    <xsl:call-template name="navig.content">
    <xsl:with-param name="direction"
    select="'PDF'"/>
    </xsl:call-template>
    </a><BR/>
    </xsl:template>


    </xsl:stylesheet>

    This results in this HTML ...

    <a accesskey="n" href="index.html"><img src="../images/PDF.gif"
    alt="xxx">

    .... which is fine expect that I can't figure out how to get the HTML
    to look like this ...

    <a accesskey="n" href="index.pdf"><img src="../images/PDF.gif"
    alt="xxx">
     
    Sheldon Plankton, Aug 19, 2004
    #1
    1. Advertising

  2. Since I don't think I'll be getting any response to my question ...

    Here's a note ...

    it looks like I need to modify the template footer.navigation and
    header.nagivation of chunk-common.xsl

    693 <!-- ====================================================== -->
    694
    695 <xsl:template name="footer.navigation">
    696 <xsl:param name="prev" select="/foo"/>
    697 <xsl:param name="next" select="/foo"/>
    698 <xsl:param name="nav.context"/>
    699
    700 <xsl:variable name="home" select="/*[1]"/>
    701 <xsl:variable name="up" select="parent::*"/>

    .... some how work out how to add a PDF link. Prefable that PDF be a
    parameter ...

    (Sheldon Plankton) wrote in message news:<>...
    > I would like to add one more link to the chunk navigation. This link
    > would link to a PDF version of the current page. Here's what I have
    > in my local stylesheet
    >
    > <?xml version='1.0'?>
    > <xsl:stylesheet
    > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    >
    > <xsl:import href="/usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl"/>
    >
    >
    > ...
    > <xsl:template name="user.footer.navigation">
    > <a accesskey="n">
    > <xsl:attribute name="href">
    > <xsl:call-template name="href.target">
    > <xsl:with-param name="object" select="."/>
    > </xsl:call-template>
    > </xsl:attribute>
    > <xsl:call-template name="navig.content">
    > <xsl:with-param name="direction"
    > select="'PDF'"/>
    > </xsl:call-template>
    > </a><BR/>
    > </xsl:template>
    >
    >
    > </xsl:stylesheet>
    >
    > This results in this HTML ...
    >
    > <a accesskey="n" href="index.html"><img src="../images/PDF.gif"
    > alt="xxx">
    >
    > ... which is fine expect that I can't figure out how to get the HTML
    > to look like this ...
    >
    > <a accesskey="n" href="index.pdf"><img src="../images/PDF.gif"
    > alt="xxx">
     
    Sheldon Plankton, Aug 23, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jean-Daniel Gamache
    Replies:
    0
    Views:
    425
    Jean-Daniel Gamache
    Jul 14, 2004
  2. Ray Thomas
    Replies:
    1
    Views:
    3,276
    Ray Thomas
    Jul 21, 2004
  3. Laurahn
    Replies:
    3
    Views:
    908
    Steven Cheng[MSFT]
    Feb 6, 2007
  4. Sanjeeb
    Replies:
    3
    Views:
    423
    Ryan Kelly
    Aug 3, 2010
  5. Stephen Beacom via .NET 247

    can you set http chunk size in c#.net?

    Stephen Beacom via .NET 247, May 31, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    332
    Stephen Beacom via .NET 247
    May 31, 2005
Loading...

Share This Page