Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com> writes:
> ... I couldn't help noticing that
> templates with match="chapter" and match="appendix" appear in our tree
> in sgml/stylesheet-speedup-common.xsl with a comment
> "Performance-optimized versions of some upstream templates from
> common/ directory". Could it be that whatever performance-enhancing
> trick they perform doesn't work on 1.1.32, or alternatively they are
> not being reached so we're falling back to non-optimised versions
> instead of these?
If you're suspicious of that, you could try removing those parts of
stylesheet-speedup-common.xsl and see what happens ...
regards, tom lane