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] Stylesheet customization by "role" in FO

> -----Original Message-----
> From: David Nedrow 
> I have the following markup....
> <section role="utc">
>      <title>a=1, b=1, c=1</title>
>      <section role="utcpurpose">
>         <title>Purpose</title>
>         <para/>
>      </section>
> </section>
> I'd like to differentiate the appearance of the <section/> <title/>  
> tag in some cases. For example, in the above snippet I'd like to  
> match on the role value to determine additional formatting 
> processing  
> (font size) for FO output.

You can customize the template named section.heading in sections.xsl. There
you can add or modify <xsl:when> elements inside the <xsl:choose>. Something
like this:

<xsl:when test="$level=1 and ../@role='utc'">
  <fo:block font-size="22pt"> 
   <xsl:copy-of select="$title"/>

Here is more information on title customizations in general:


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]