diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2013-10-15 22:54:36 -0400 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2013-10-15 22:54:36 -0400 |
commit | 90c7b7d16bb3a90fc9168ff8942fbf78308e727d (patch) | |
tree | 55bfc228d0f2350bafa9122d0f4e481df7554bfa | |
parent | f918c52f65aa28fb8c00d3f7078ff7b4788929dc (diff) | |
download | postgresql-90c7b7d16bb3a90fc9168ff8942fbf78308e727d.tar.gz postgresql-90c7b7d16bb3a90fc9168ff8942fbf78308e727d.zip |
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.
-rw-r--r-- | doc/src/sgml/Makefile | 2 | ||||
-rw-r--r-- | doc/src/sgml/filelist.sgml | 5 | ||||
-rw-r--r-- | doc/src/sgml/postgres.sgml | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 0ca6f58c6a0..23c226a4b4a 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -251,7 +251,7 @@ regress_README.html: regress.sgml # if we try to do "make all" in a VPATH build without the explicit # $(srcdir) on the postgres.sgml dependency in this rule. gmake bug? postgres.xml: $(srcdir)/postgres.sgml $(ALMOSTALLSGML) - $(OSX) -D. -x lower $< >postgres.xmltmp + $(OSX) -D. -x lower -i include-xslt-index $< >postgres.xmltmp $(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;' \ -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;' \ <postgres.xmltmp > $@ diff --git a/doc/src/sgml/filelist.sgml b/doc/src/sgml/filelist.sgml index 914090d102a..d1b7dc67811 100644 --- a/doc/src/sgml/filelist.sgml +++ b/doc/src/sgml/filelist.sgml @@ -196,3 +196,8 @@ to include it. --> <!ENTITY % include-index "IGNORE"> + +<!-- + Create empty index element for processing by XSLT stylesheet. + --> +<!ENTITY % include-xslt-index "IGNORE"> diff --git a/doc/src/sgml/postgres.sgml b/doc/src/sgml/postgres.sgml index 15e4ef641e7..522316c28e1 100644 --- a/doc/src/sgml/postgres.sgml +++ b/doc/src/sgml/postgres.sgml @@ -270,5 +270,6 @@ &biblio; <![%include-index;[&bookindex;]]> + <![%include-xslt-index;[<index></index>]]> </book> |