Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > How can I add another chunk navigation link?

Reply
Thread Tools

How can I add another chunk navigation link?

 
 
Sheldon Plankton
Guest
Posts: n/a
 
      08-19-2004
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
xmlnssl="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">
 
Reply With Quote
 
 
 
 
Sheldon Plankton
Guest
Posts: n/a
 
      08-23-2004
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 <xslaram name="prev" select="/foo"/>
697 <xslaram name="next" select="/foo"/>
698 <xslaram 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 ...

http://www.velocityreviews.com/forums/(E-Mail Removed) (Sheldon Plankton) wrote in message news:<(E-Mail Removed). com>...
> 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
> xmlnssl="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">

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sending a file chunk by chunk instead as a whole to a web server Sanjeeb Python 3 08-03-2010 05:52 AM
Disable the navigation buttons for IE navigation toolbar Laurahn ASP .Net 3 02-06-2007 04:17 AM
What is an AVI Chunk Viewer? - AVI Chunk Viewer.jpg (0/1) mazdra76@yahooo.com Computer Support 1 03-17-2006 02:52 AM
can you set http chunk size in c#.net? Stephen Beacom via .NET 247 ASP .Net Web Services 0 05-31-2005 03:42 AM
connection 1: transfer chunk 1 (byte 0 to byte 1024) Jean-Daniel Gamache Java 0 07-14-2004 03:57 AM



Advertisments