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 and olinks


Hi Bob,

I use DocBook XSL version 1.75.1. I do use profiling, but not via the role attribute. My custom xsl calls xhtml/profile-chunk.xsl. The xsl contains custom user.header.navigation, user.footer.navigation and user.footer.content templates.  The project is modular, i.e. each xml file represents a single DocBook article, which is rendered as a single xhtml file. Each article contains several sections, most of them contain one special" section, and I would like to apply different style rules to that section only. Using IDs to target those sections is not an option because each section has different id. Articles are grouped in books using xi:include, and I use xsltproc to process those books.

Thanks,
Robert



On Fri, Mar 19, 2010 at 4:56 AM, Bob Stayton <bobs@sagehill.net> wrote:
Hi Robert,
Your template works for me.  What version of the stylesheets are you using? Can you provide more details about what else your customization is doing and how you are processing your files?
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
From: robert
Sent: Thursday, March 18, 2010 2:02 AM
Subject: [docbook-apps] customizing the class attribute for sections and olinks

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?

Thanks,
Robert



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