forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5869aef
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.org1 parent254361c commit5869aef
File tree
3 files changed
+15
-0
lines changed- doc/src/sgml
3 files changed
+15
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
46 | 53 |
| |
47 | 54 |
| |
48 | 55 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
150 | 154 |
| |
151 | 155 |
| |
152 | 156 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
441 | 441 |
| |
442 | 442 |
| |
443 | 443 |
| |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
444 | 448 |
| |
445 | 449 |
| |
446 | 450 |
| |
|
0 commit comments
Comments
(0)