Skip to content

Commit 90c7b7d

Browse files
committed
doc: Enable book index in XSLT builds
The XSLT toolchain requires an empty <index> element where the index is supposed to appear. Add that with conditionals to hide it from the DSSSL build.
1 parent f918c52 commit 90c7b7d

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

doc/src/sgml/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ regress_README.html: regress.sgml
251251
# if we try to do "make all" in a VPATH build without the explicit
252252
# $(srcdir) on the postgres.sgml dependency in this rule. gmake bug?
253253
postgres.xml: $(srcdir)/postgres.sgml $(ALMOSTALLSGML)
254-
$(OSX) -D. -x lower $< >postgres.xmltmp
254+
$(OSX) -D. -x lower -i include-xslt-index $< >postgres.xmltmp
255255
$(PERL) -p -e 's/\[(aacute|acirc|aelig|agrave|amp|aring|atilde|auml|bull|copy|eacute|egrave|gt|iacute|lt|mdash|nbsp|ntilde|oacute|ocirc|oslash|ouml|pi|quot|scaron|uuml) *\]/\&\1;/gi;' \
256256
-e '$$_ .= qq{<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">\n} if $$. == 1;' \
257257
<postgres.xmltmp > $@

doc/src/sgml/filelist.sgml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,3 +196,8 @@
196196
to include it.
197197
-->
198198
<!ENTITY % include-index "IGNORE">
199+
200+
<!--
201+
Create empty index element for processing by XSLT stylesheet.
202+
-->
203+
<!ENTITY % include-xslt-index "IGNORE">

doc/src/sgml/postgres.sgml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,5 +270,6 @@
270270

271271
&biblio;
272272
<![%include-index;[&bookindex;]]>
273+
<![%include-xslt-index;[<index></index>]]>
273274

274275
</book>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy