Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5869aef

Browse files
committed
Fix documentation build with older docbook-xsl
Commitb0f0a94 backpatched some code from upstream DocBook XSL toour customization layer. It turned out that this failed to work withanything but the latest DocBook XSL upstream version (1.79.*), becausethe backpatched code references an XSLT parameter (autolink.index.see)that is not defined in earlier versions (because the feature it isused for did not exist yet).There is no way in XSLT to test whether a parameter is declared beforethe stylesheet processor tries and fails to access it. So thepossibilities to fix this would be to either remove the code that usesthe parameter (and thus give up on the feature it is used for) ordeclare the parameter in our customization layer. The latter seemseasier, and with a few more lines of code we can backport the entireautolink.index.see feature, so let's do that. (If we didn't, thenwith older stylesheets the parameter will appear as on, but it won'tactually do anything, because of the way the stylesheets are laid out,so it's less confusing to just make it work.)With this, the documentation build should work again with docbook-xslversions 1.77.*, 1.78.*, and 1.79.* (which already worked before).Version 1.76.1 already didn't work before all this, so was notconsidered here.Reported-by: Peter Smith <smithpb2250@gmail.com>Discussion:https://www.postgresql.org/message-id/flat/9077b779-a9f8-09c8-6e85-da1ebfba15af@eisentraut.org
1 parent254361c commit5869aef

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

‎doc/src/sgml/stylesheet-common.xsl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@
4343
<xsl:paramname="variablelist.term.separator"></xsl:param>
4444
<xsl:paramname="xref.with.number.and.title"select="0"></xsl:param>
4545

46+
<!--
47+
This is the default setting, but putting it here makes sure the variable
48+
exists even with older (<1.79) stylesheet versions, because it is used in
49+
our customization layer.
50+
-->
51+
<xsl:paramname="autolink.index.see"select="1"/>
52+
4653

4754
<!-- Change display of some elements-->
4855

‎doc/src/sgml/stylesheet-fo.xsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,10 @@
147147

148148
<!-- from fo/autoidx.xsl-->
149149

150+
<xsl:keyname="primaryonly"
151+
match="indexterm"
152+
use="normalize-space(primary)"/>
153+
150154
<xsl:templatematch="indexterm"mode="index-primary">
151155
<xsl:paramname="scope"select="."/>
152156
<xsl:paramname="role"select="''"/>

‎doc/src/sgml/stylesheet-html-common.xsl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ set toc,title
441441

442442
<!-- from html/autoidx.xsl-->
443443

444+
<xsl:keyname="primaryonly"
445+
match="indexterm"
446+
use="normalize-space(primary)"/>
447+
444448
<xsl:templatematch="indexterm"mode="index-primary">
445449
<xsl:paramname="scope"select="."/>
446450
<xsl:paramname="role"select="''"/>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp