[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] @role. How high can it go?
Hi Dave, That sounds fine. There is also a utility template named 'body.attributes' that can be customized to add attributes to the body element. The original is in html/docbook.xsl. It is called right after the opening tag of <body>. Bob Stayton Sagehill Enterprises email@example.com ----- Original Message ----- From: "davep" <firstname.lastname@example.org> To: "Bob Stayton" <email@example.com> Cc: "Docbook-apps" <firstname.lastname@example.org> Sent: Tuesday, September 13, 2011 9:36 AM Subject: Re: [docbook-apps] @role. How high can it go? > On 09/13/2011 05:28 PM, Bob Stayton wrote: >> Hi Dave, >> There are only four elements for which the stylesheets can propagate a role >> attribute to an HTML class attribute: emphasis, para, phrase, and entry, and each >> has its own stylesheet param to control such behavior (such as >> $para.propagates.style). Because @role is used for many different purposes, this >> feature has not been implemented for all elements. >> >> But the stylesheets do support customizing class attributes. If you want to use >> propagate role to class for other elements, then you'll need to add a custom >> template in mode="class.value", as described here: >> >> http://www.sagehill.net/docbookxsl/HtmlCustomEx.html#CustomClassValues >> >> Bob Stayton >> Sagehill Enterprises >> email@example.com > > > Thanks Bob. > I need it higher than that... and found > <xsl:template name="user.head.content"> > <xsl:param name="node" select="."/> > > </xsl:template> > > > > Into which I added some jscript. > > Then used CSS to import a common stylesheet > which I used to propograte the font-family to the body element. > > Working so far, though website is missing the user.head.content call? > > > regards > > > > > > regards > > -- > Dave Pawson > XSLT XSL-FO FAQ. > http://www.dpawson.co.uk > > >