<chapter id="spi">
<title>Server Programming Interface</title>
then
<xref linkend="spi">
should render as "Server Programming Interface" because the <title> element is looked up.
This doesn't seem to be the case in the official docs on
postgresql.org or in "make html" builds.
The stylesheets don't seem to specify the <xsl:param> xref.with.number.and.title - if that was set to zero then the behaviour I see would be expected. Setting it explicitly in stylesheet-common.xsl:
<xsl:param name="xref.with.number.and.title">1</xsl:param>
appears to have no effect.
The only gentext customisations seem to be in styleshet-man.xsl so it doesn't seem to be being overridden.
These links are quite user-unfriendly when our chapter numbering isn't
really very informative. "See [Section 33.1.2]" tells the user nothing. I'd really like to change the default to actually use the title texts.
Am I just missing something obvious? Is this linking style, where the chapter title is ignored, by design?
I can just use <link> elements, but I'd really rather avoid endlessly repeating things like
<link linkend="spi">Server Programming Interface (<acronym>SPI</acronym>)</link>
everywhere, especially as that's the whole purpose of <xref> and the <title> element.
Comments?