This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Using "role" attribute in Chunked Section Titles and SubTitles
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: <phil700 at xmsg dot com>, <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 28 Jun 2004 09:55:18 -0700
- Subject: Re: [docbook-apps] Using "role" attribute in Chunked Section Titles and SubTitles
- References: <12226977.1088431775260.JavaMail.root@db0.prod1.inuntius.com>
Take a look at the template named 'section.heading' in html/sections.xsl.
It has a 'class' param that is 'title' by default, but which you could
customize to insert your role attribute.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Phil Weston" <phil700@xmsg.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, June 28, 2004 7:09 AM
Subject: [docbook-apps] Using "role" attribute in Chunked Section Titles and
SubTitles
> Hi there
>
> Can anyone offer advice on how I can customise the way my chunked section
titles and subtitles appear.
>
> My XML uses the role attribute to identify what sort of section I have:
>
> <section role="subject">
> <title>My Subject Title</title>
> <subtitle>My Subject Subitle</subtitle>
> <section role="sub-subject">
> <title>My Sub-subject Title</title>
> <subtitle>My Sub-subject Subtitle</subtitle>
> ...
> </section>
> </section>
>
> I'd like my chunked customisation layer to produce:
>
> <div>
> <h3 class="subject-title"><a id="MA006"
name="MA006"></a>Spreadsheets</h3>
> </div>
> <div>
> <h4 class="subject-subtitle"></h4>
> </div>
>
> ie. Include the section's role in the <hx> heading tag's class attribute
so my CSS stylesheet can render it nicely for me.
>
> I have this working for my chapters using <xsl:template
name="component.title"> and <xsl:template name="component.subtitle">
>
> For single file html, customising <xsl:template match="section"> seems to
work for me but using this template for chunked html screws up the chunking
itself.
>
> 1. Is this the correct approach?
> 2. Which template modifies chunked section titles & subtitles?
>
> TIA.
>
> P.
>
>
>
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.