Hi,
In the HTML stylesheet, he 'section' parameter is set in the template named
'section.title' in html/sections.xsl, where the context node is the section's title
element. It computes the section parent using this variable:
<xsl:variable name="section" select="(ancestor::section
|ancestor::simplesect
|ancestor::sect1
|ancestor::sect2
|ancestor::sect3
|ancestor::sect4
|ancestor::sect5)[last()]"/>
The 'section.heading' template in fo/sections.xsl also has the section title as the
context element, so you could copy the same selection in your customization to
establish the section variable there.
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net