← Prev in month ← Prev in thread
Next in thread → Next in month →

AW: [docbook-apps] Newbie docbook-xsl question: how to customiseuser.header.navigation?

From
"=?iso-8859-1?C?RvYyYyC@9mKpdW[=?="
Date
2006-03-20T17:49:35+00:00
ID
000501c64c47$14744130$650c18ac@jmoxp1
Thread
AW: [docbook-apps] Newbie docbook-xsl question: how to customiseuser.header.navigation?
Hi,
you build a customization layer (see Bob Staytons excellent book
http://www.sagehill.net/docbookxsl/CustomMethods.html#CustomizationLayer)
like:

<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

	<xsl:import href="docbook/xhtml/docbook.xsl"/>
	<xsl:param name="l10n.gentext.language" select="en"/>
	<xsl:template name="user.header.content">
	  	<div class="tableArea">
		  	<a class="tab"
href="http://xsdexlipse.sourceforge.net/">xsdexlipse</a>
		  	<a id="currentTab" class="tab"
href="index.html">xsdTransformer</a>
		  	<a class="tab" href="index.html">other projects</a>
		</div>  	
    .
    .
    .
	</xsl:template>
	
</xsl:stylesheet>

All stuff you place into this script overrides the appropriate genuine
templates (etc). As mentioned above Bob Stayton explains it very clear and
comprehensive.

Best Regard

Joerg Moebius

-----Ursprüngliche Nachricht-----
Von: Roland Turner (OASIS) [mailto:] 
Gesendet: Montag, 20. März 2006 18:01
An: 
Betreff: [docbook-apps] Newbie docbook-xsl question: how to
customiseuser.header.navigation?

Hello.

I'm using xsltproc (packaged on Debian Sarge, if this is relevant) to
convert a DocBook source to HTML. I wish to add some user navigation links
to the tops of generated pages. The docs talk about user.header.navigation,
but I'm not clear on how to actually set this.

- Using --stringparam appears to have no effect.

- Using --param variously generates xpath errors, or has no effect.

- Copying chunk.xsl and docbook.xml from /usr/share, tweaking them directly,
and then messing about with a lengthy --path option generated several
message like "duplicate name 'dbhtml-attribute'", which I really don't get.

Am I on the right path here? Is there a simpler way?

- Raz

---------------------------------------------------------------------
To unsubscribe, e-mail: 
For additional commands, e-mail: 
← Prev in month ← Prev in thread
Next in thread → Next in month →