This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Re: Linking titlepage to top level chunk.
- From: Eric Baudais <baudais at okstate dot edu>
- To: Norman Walsh <ndw at nwalsh dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 30 Nov 2001 14:39:09 -0600
- Subject: Re: DOCBOOK-APPS: Re: Linking titlepage to top level chunk.
- List-id: <docbook-apps.lists.oasis-open.org>
- References: <20011130010725.A1619@x8b4e50ae.dhcp.okstate.edu><87pu60t7mt.fsf@nwalsh.com>
On Fri, Nov 30, 2001 at 01:51:06PM -0500, Norman Walsh wrote:
> / Eric Baudais <baudais@okstate.edu> was heard to say:
> | I am writing a customization which will chunk the titlepage separately and
> | add a link from the top level chunk to the titlepage. I am able to make the
> | titlepage separately with some editting of titlepage.xsl (soon to be migrated
> | to template/titlepage.xsl). What I am stumped on is how to put a link from
> | the top level chunk to the titlepage. I want this link to appear in the
> | navigation headers as the previous link.
> |
> | Can anyone suggest a way to do this?
>
> If, for example, you're dealing with books, and you want the bookinfo to be
> on a separate page, you can update the calculation of $prev in chunk.xsl to
> include "bookinfo". That'll get you a pointer to it. You'll need to tweak a
> few things so that an xref to a bookinfo translates into the right href.
I made the following changes to chunk-common.xsl:
Added to <xsl:template match="*" mode="chunk-filename">:
<xsl:when test="name(.)='bookinfo'">
<xsl:text>titlepage</xsl:text>
<xsl:if test="not($recursive)">
<xsl:value-of select="$html.ext"/>
</xsl:if>
</xsl:when>
Added to <xsl:template name="chunk">:
<xsl:when test="name($node)='bookinfo'">1</xsl:when>
Added to <xsl:template name="chunk-all-top-level-sections">:
<xsl:variable name="prev"
select="(articleinfo[1]
|bookinfo[1]
When I process the stylesheets using xsltproc I get the following message:
No template named "bookinfo" exists in the context named "title" in the "en"
localization.
I looked at common/l10n.xsl and it looks like I need to add an entry in
common/en.xml in <l:context name="title"> for bookinfo. At the top of the
file it says that it is an automatically generated file.
How do I make this message go away?
Eric Baudais