>>For example, if a refentry appears inside a sect1,
>>then its NAME title should be format as section
>>level 2, and any refsect1 should format as section
>>level 3, etc. Does that sound right?
I had a go at fixing the section.level template in common/common.xsl
so that when invoked on a refentry section/sect[12345] or
refsynopsisdiv, it will include the depth of the containing section.
I've attached (as common.sectionlevel.xsl) my replacement for
section.level but I haven't tested it much. It works fine for the
document that I've been writing but I've probably missed some
cases. I'm sure it can be made much more compact but I'm not really
familiar enough with XSLT syntax.
The changes are picked up automatically by fo/refentry.xsl but
xhtml/refentry.xsl merely sets the sectn headings to <h{n+1}> and
doesn't use section.level. So I've attached (as xhtml.refentry.xsl)
some templates that I've been using in my customisation layer to use
the new section.level template.
Pointings-out of any potential pitfalls appreciated.
Brian McGurk