I'm writing a book using Docbook and have an issue with how references
to listings are rendered in PDF version.
For example, my docbook file contains the following fragment:
<simpara>Blah blah blah as presented on listing <xref
<programlisting language="java" linenumbering="unnumbered">
// some cool code here
In PDF version (generated with fop) xhref link to the listing is rendered as:
"Blah blah blah as presented on listing One-Liner Test."
I would like to look it differently, i.e. like this:
"Blah blah blah as presented on listing 3.1"
I have achieved similar thing with tables and figures (as discussed
here http://is.gd/wAInBB) by tweaking the docbook-xsl/fo.xsl like
<xsl:param name="local.l10n.xml" select="document('')"/>
<l:template name="table" text="Table %n"/>
I have tried to do the same with listings, using various options
(well, I was just shooting in the dark, I know...):