[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Using "role" attribute in Chunked Section Titles and SubTitles
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/. > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]