[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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 bobs@sagehill.net ----- Original Message ----- From: "Jean Jordaan" <jean.jordaan@gmail.com> To: <docbook-apps@lists.oasis-open.org> 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: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]