S
Sheldon Plankton
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">
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">