← Prev in month ← Prev in thread

Re: [docbook-apps] customizing the class attribute for sections andolinks

From
Dave Pawson <>
Date
2010-03-18T09:14:00+00:00
ID
Thread
Re: [docbook-apps] customizing the class attribute for sections andolinks
On 18/03/10 09:02, robert wrote:
> Hi All,
>
> I would like to apply custom values of the class attribute to the selected
> section and olink elements. I've tried with the role attribute, but it does
> not work. I've also tried to add the following template to my customization
> layer (both for section and olink):
>
> <xsl:template match="section[@role = 'quickref']" mode="class.value">
>    <xsl:value-of select="@role"/>
> </xsl:template
>
> Again, no success.
>
> What am I missing?
http://docbook.sourceforge.net/release/xsl/current/doc/html/css.decoration.html


<xsl:param name="css.decoration" select="1"></xsl:param>

That takes your element names through to class attributes I believe.


regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
← Prev in month ← Prev in thread