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 <[email protected]> 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
> [email protected]
>
>
>
> ----- Original Message -----
> *From:* robert <[email protected]>
> *To:* [email protected]
> *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="secti...@role = 'quickref']" mode="class.value">
>   <xsl:value-of select="@role"/>
> </xsl:template
>
> Again, no success.
>
> What am I missing?
>
> Thanks,
> Robert
>
>

Reply via email to