]> granicus.if.org Git - postgresql/commitdiff
doc: Enable book index in XSLT builds
authorPeter Eisentraut <peter_e@gmx.net>
Wed, 16 Oct 2013 02:54:36 +0000 (22:54 -0400)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 16 Oct 2013 02:54:36 +0000 (22:54 -0400)
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.

doc/src/sgml/Makefile
doc/src/sgml/filelist.sgml
doc/src/sgml/postgres.sgml

index 0ca6f58c6a05aec56e88134643a8745e80478b10..23c226a4b4a60e1f277d6e9500b35ff33b3a52be 100644 (file)
@@ -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 > $@
index 914090d102a0e7dcacd7e1dd254906c52b979372..d1b7dc67811047e0cdc650ea1ac1d97f10cb6f5f 100644 (file)
  to include it.
  -->
 <!ENTITY % include-index "IGNORE">
+
+<!--
+ Create empty index element for processing by XSLT stylesheet.
+ -->
+<!ENTITY % include-xslt-index "IGNORE">
index 15e4ef641e7fb81d4031a91b8d82cd02048333c6..522316c28e1a5960a70c98ef3e79d5a386779a2d 100644 (file)
 
  &biblio;
  <![%include-index;[&bookindex;]]>
+ <![%include-xslt-index;[<index></index>]]>
 
 </book>