[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] insert.link.page.number in xsl stylesheets
Putting "'yes'" (single in double quotes) in the param statement got the links to put out page numbers. I guess that's what I get for reading Chapter 15 before Chapter 1. But links put out the "unspecified" page style, no matter what xrefstyle is set to. I
tried:
<link xrefstyle="select: page" linkend="source">A Chapter link</link>
<link xrefstyle="select: 'page'" linkend="source">A Chapter link</link>
<link xrefstyle="'select: page'" linkend="source">A Chapter link</link>
<link xrefstyle='select: page' linkend="source">A Chapter link</link>
<link xrefstyle='"select: page"' linkend="source">A Chapter link</link>
In all five cases, the rendering was:
A Chapter link [15]
Interestingly, xref and link behave differently when it comes to quotes, and I can see that they are treated differently in xref.xsl.
From: Bob Stayton <bobs@sagehill.net>
Sent: Monday, June 14, 2021 5:00 PM To: docbook-apps@lists.oasis-open.org <docbook-apps@lists.oasis-open.org> Subject: Re: [docbook-apps] insert.link.page.number in xsl stylesheets 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 bobs@sagehill.net On 6/14/2021 12:05 PM, Kevin Dunn wrote:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]