This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: xtchunk.xsl - Navigation Images and xml editors
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: xtchunk.xsl - Navigation Images and xml editors
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Fri, 19 Oct 2001 08:54:46 -0400
- List-Id: <docbook-apps.lists.oasis-open.org>
- References: <10110160142.aa14069@mammoth.ca.caldera.com>
/ Bob Stayton <bobs@caldera.com> was heard to say:
| The HTML header and footer output is controlled by templates
| named 'header.navigation' and 'footer.navigation' which
| are in chunk-common.xsl. You'll need to copy them to
| your customization file and modify them.
| I've reproduced footer.navigation
| here and marked the points where text is generated.
| That's where you will want to have it generate <img> tags
| instead.
No, I think you want to do this a different way. The header and footer
navigation templates call gentext.nav.*:
| change ---> <xsl:call-template name="gentext.nav.prev"/>
| change ---> <xsl:call-template name="gentext.nav.home"/>
| change ---> <xsl:call-template name="gentext.nav.next"/>
| change ---> <xsl:call-template name="gentext.nav.up"/>
precisely so that you can override *them* to change the navigation.
| You'll want to replace the gentext calls
| with literal <img> result elements
| For example, replace:
|
| <xsl:call-template name="gentext.nav.next"/>
|
| with:
|
| <img src="images/next.jpg" >
| <xsl:attribute name="alt">
| <xsl:call-template name="gentext.nav.next"/>
| </xsl:attribute>
| </img>
No, what you want to do in your customization layer (IMHO) is this:
<xsl:template name="gentext.nav.next"/>
<img src="images/next.jpg" alt="next"/>
</xsl:template>
This saves you the trouble of copying a large, complex template.
| Of course, an easier approach is to make a feature
| request that navigational icons be a parameter
| that you can set without modifying templates. 8^)
| Seems like a nice feature that others could use.
Uh, Bob.. :-)
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Well-being is attained by little
http://www.oasis-open.org/docbook/ | and little, and nevertheless it is
Chair, DocBook Technical Committee | no little thing itself.--Zen of
| Citium
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>