From b89744198e4c4a49a09f856332d8bbe90e320720 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 15 Jan 2004 23:51:32 +0000 Subject: [PATCH] Some refinement of XSLT processing: The result now looks just about as good as the result of the SGML-based tool chain. --- doc/src/sgml/Makefile | 9 ++++-- doc/src/sgml/stylesheet.xsl | 62 ++++++++++++++++++++++++++++++------- 2 files changed, 56 insertions(+), 15 deletions(-) diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile index 64f57814ad..f80cdffa74 100644 --- a/doc/src/sgml/Makefile +++ b/doc/src/sgml/Makefile @@ -2,7 +2,7 @@ # # PostgreSQL documentation makefile # -# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.63 2004/01/13 18:45:19 petere Exp $ +# $PostgreSQL: pgsql/doc/src/sgml/Makefile,v 1.64 2004/01/15 23:51:32 petere Exp $ # #---------------------------------------------------------------------------- @@ -205,10 +205,13 @@ OSX = osx # (may be called sx or sgml2xml on some systems) XSLTPROC = xsltproc postgres.xml: postgres.sgml $(GENERATED_SGML) - $(OSX) -x lower $< >$@ + $(OSX) -x lower $< | \ + sed -e 's/\[\(lt\|gt\|amp\|nbsp\|copy\|quot\|ouml\|uuml\|egrave\) *\]/\&\1;/g' \ + -e '1a\' -e '' \ + >$@ testxml: stylesheet.xsl postgres.xml - $(XSLTPROC) $^ + $(XSLTPROC) $(XSLTPROCFLAGS) --stringparam pg.version '$(VERSION)' $^ ## diff --git a/doc/src/sgml/stylesheet.xsl b/doc/src/sgml/stylesheet.xsl index 3301afd617..0a1af776e5 100644 --- a/doc/src/sgml/stylesheet.xsl +++ b/doc/src/sgml/stylesheet.xsl @@ -4,30 +4,48 @@ xmlns="http://www.w3.org/TR/xhtml1/transitional" exclude-result-prefixes="#default"> - + - + + + + + + + 1 + 0 + + + + -3 +2 - - - + + + + - + + pgsql-docs@postgresql.org - - - - - + + + @@ -67,4 +85,24 @@ + + + + + ?? + + + + + + + + + +
+
+