Re: insert.link.page.number in xsl stylesheets

Bob Stayton <[email protected]> Mon, 14 Jun 2021 14:00:02 -0700
Newsgroups gmane.text.docbook.apps
Message-ID <[email protected]>
I think the problem is in the param statement, where the string yes is 
being interpreted as an element name.


<xsl:param name="insert.link.page.number" select="'yes'"/>


(I added single quotes around the word yes).

Bob Stayton
[email protected]

On 6/14/2021 12:05 PM, Kevin Dunn wrote:
> I'm customizing xrefs to render page numbers in pdf files for print. 
> Setting insert.xref.page.number to yes, and using an xrefstyle 
> attribute, I can get the desired output, e.g. "See Appendix B (page 127)."
>
> Page number for links do not work as I would expect from 
> readinghttp://www.sagehill.net/docbookxsl/CustomXrefs.html 
> <http://www.sagehill.net/docbookxsl/CustomXrefs.html>.
>
> In my custom xsl, I have both:
> <xsl:param name="insert.xref.page.number" select="yes"/>
> <xsl:param name="insert.link.page.number" select="yes"/>
>
> My xml file contains both:
> <xref xrefstyle="select: label title page" linkend="source"/>
> <link xrefstyle="select: page" linkend="source">A Chapter link</link>
>
> The fo from xsltproc renders page numbers for the xref, but not for 
> the link. The behavior is the same using version 1.79.1 stylesheet and 
> the snapshot/2020-06-03. Fop, xep, and axf produce PDFs with working 
> links, but rendered page numbers only for the xrefs.
>
> I may be misreading the documentation or misunderstanding the xsl 
> (very possible). The xsl is different for xref and link in xref.xsl, 
> but to my untrained eye, both look reasonable.
>
> Any suggestions?