[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]