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] @role. How high can it go?


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
bobs@sagehill.net


----- Original Message ----- 
From: "davep" <davep@dpawson.co.uk>
To: "Docbook-apps" <docbook-apps@lists.oasis-open.org>
Sent: Tuesday, September 13, 2011 2:54 AM
Subject: [docbook-apps] @role. How high can it go?


>
> I'm experimenting with typekit, typekit.com
> and I want to add an @role attribute quite high in the xml tree,
> to select a font for all the children?
>
> Tried it on book, chapter, section and it doesn't come through as a @class
> attribute? Works OK on para ... I have the params set correctly I believe;
> <xsl:param name="html.stylesheet" select="'dpawson.css'"/>
> <xsl:param name="css.decoration" select="0"/>
> <xsl:param name="html.stylesheet.type">text/css</xsl:param>
>
> http://www.docbook.org/tdg/en/html/book.html
> @role is valid on <book...
>
> Any suggestions please?
>
>
>
> regards
>
> -- 
> Dave Pawson
> XSLT XSL-FO FAQ.
> http://www.dpawson.co.uk
>
>
> ---------------------------------------------------------------------
> 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]