Re: [docbook-apps] "propagates.style" question

From
Bob Stayton <>
Date
2008-03-15T07:49:24+00:00
ID
63A3F5DB3AAF40429821B47D8B84E425@sheeta
Thread
Re: [docbook-apps] "propagates.style" question
Sorry for the slow response on this one.  The "*.propagates.role" mechanism 
was not suitable for scaling to all elements.  Instead, a template mode now 
generates the class value for each element.  You can control the class 
attributes using a simple template customization starting with version 
1.73.2 of the stylesheets.  See this doc for details:

http://www.sagehill.net/docbookxsl/HtmlCustomEx.html#CustomClassValues

For example:

<xsl:template match="table[@role = 'parts']" mode="class.value">
  <xsl:text>parts-table</xsl:text>
</xsl:template>

Bob Stayton
Sagehill Enterprises



----- Original Message ----- 
From: "Jean Jordaan" <>
To: <>
Sent: Wednesday, March 05, 2008 11:33 PM
Subject: [docbook-apps] "propagates.style" question


> Hi all
>
> Why does DocBook have
>
> emphasis.propagates.style
> para.propagates.style
> phrase.propagates.style
> entry.propagates.style
>
> and not simply propagate.style for all elements that take role (and
> why does it say that it's propagating style, and not role, anyway)? I
> want to style a specific TABLE in the HTML output, and now I have to
> resort to putting a 'role' attribute on the first preceding P element,
> instead of the containing DIV element. Ideally I'd want to propagate
> id, not role, but looks like that isn't possible either.
>
> -- 
> jean                                              . .. .... //\\\oo///\\
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
>
>