This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Re: [docbook] How can I add another chunk navigation link?
- From: Sheldon Plankton <sheldonplankton at yahoo dot com>
- To: Sheldon Plankton <sheldonplankton at yahoo dot com>, Bob Stayton <bobs at sagehill dot net>, DocBook Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 24 Aug 2004 13:26:46 -0700 (PDT)
- Subject: Re: [docbook-apps] Re: [docbook] How can I add another chunk navigation link?
Oops!
I did post everything in my local stylesheet ...
Here it is ...
<?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="pdfdoc_link">
<!-- Thanks Bob Stayton -->
<xsl:variable name="href.orig">
<xsl:call-template name="href.target">
<xsl:with-param name="object" select="."/>
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="substring-before($href.orig,
'.html')"/>
<xsl:text>.pdf</xsl:text>
<!-- end Thanks Bob Stayton -->
</xsl:template>
<xsl:template name="user.footer.navigation">
<a>
<xsl:attribute name="href">
<xsl:call-template name="pdfdoc_link"/>
</xsl:attribute>
PDF</a><BR/>
</xsl:template>
</xsl:stylesheet>
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail