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 protected]
----- Original Message -----
From: "davep" <[email protected]>
To: "Docbook-apps" <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]