[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
Thanks. Changing the default worked for both xref and link. I could not make a custom "mystyle" style work with either of them. That's fine. I would prefer to have the same style throughout a document, except when I don't want a page reference. "nopage" works
for both xrefs and links, so now I'm able to do everything I want to do.
FYI, when I tried to use a custom "mystyle", both xref and link gave me the default style. xref recognizes page, Page, pageabbrev, pagenumber, and nopage. Anything else (including "mystyle") gives the default. link recognizes only nopage. Anything else gives
the default.
From: Bob Stayton <bobs@sagehill.net>
Sent: Tuesday, June 15, 2021 2:25 AM To: Kevin Dunn <kdunn@hsc.edu>; docbook-apps@lists.oasis-open.org <docbook-apps@lists.oasis-open.org> Subject: Re: [docbook-apps] insert.link.page.number in xsl stylesheets Hi Kevin, Indeed, it looks like the "select:" mechanism in @xrefstyle was never implemented for link element page references, only for xrefs. This will require customizing the generated text instead. See http://www.sagehill.net/docbookxsl/CustomGentext.html#CustomGenText
You can change the default (unspecified) style by adding this to your customization layer:
<xsl:param name="local.l10n.xml" select="document('')"/>
If you don't want to alter the default style, the named style mechanism does work, so you could add a this instead (note the @style attribute): . <xsl:param name="local.l10n.xml" select="document('')"/>
Then you would get your style if you specify <link xrefstyle="mystyle">, otherwise you get the default. Bob Stayton bobs@sagehill.net On 6/14/2021 8:27 PM, Kevin Dunn wrote:
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]