OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]