This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Linking titlepage to top level chunk.


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]