Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 8F38C9F9EED for ; Mon, 11 Dec 2006 20:29:44 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 13569-01 for ; Mon, 11 Dec 2006 20:29:39 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sd-2317.dedibox.fr (sd-2317.dedibox.fr [88.191.17.192]) by postgresql.org (Postfix) with ESMTP id 128F29F931E for ; Mon, 11 Dec 2006 20:29:44 -0400 (AST) Received: from sd-2317.dedibox.fr (localhost.localdomain [127.0.0.1]) by sd-2317.dedibox.fr (Postfix) with ESMTP id 436C1B167; Tue, 12 Dec 2006 01:34:32 +0100 (CET) Received: from [192.168.10.64] (ASte-Genev-Bois-153-1-76-228.w86-203.abo.wanadoo.fr [86.203.162.228]) by sd-2317.dedibox.fr (Postfix) with ESMTP id DE9962302; Tue, 12 Dec 2006 01:34:30 +0100 (CET) Message-ID: <457DF846.9080502@lelarge.info> Date: Tue, 12 Dec 2006 01:31:02 +0100 From: Guillaume Lelarge User-Agent: Thunderbird 1.5.0.8 (X11/20061115) MIME-Version: 1.0 To: David Blewett Cc: Peter Eisentraut , pgsql-docs@postgresql.org Subject: Re: Switching to XML References: <4579720E.4000707@dawninglight.net> <200612101737.10958.peter_e@gmx.net> <457CB1CF.2090604@dawninglight.net> <200612111013.41550.peter_e@gmx.net> <457D9F0A.9050202@dawninglight.net> In-Reply-To: <457D9F0A.9050202@dawninglight.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-Archive-Number: 200612/138 X-Sequence-Number: 4061 David Blewett a écrit : > Peter Eisentraut wrote: >> Right. So using the XSL(T) stylesheet instead of the DSSSL stylesheet would >> be a step in the right direction. Actually the 8.2 branch currently only has >> an XSLT stylesheet for HTML output. In 8.3devel I've added one for XSL-FO >> output, which you can invoke by "make postgres-{A4|US}.fo". (You will >> probably want yet a different paper format for your book.) > > Excuse my ignorance, but I thought XSLT stylesheets can only be used > on XML files? > That's right. To use Peter's work, you need to checkout CVS HEAD, cd into doc/src/sgml, "make postgres.xml" which build a valid XML file. Next step depends on the output format you want to get. To get HTML output from XSLT file, execute "make xslthtml". This target use stylesheet.xsl which customizes a bit the XSLT stylesheets for XHTML available from docbook.sourceforge.net. To get .fo output (required to build a PDF file), "make postgres-A4.fo". This command will use the stylesheet-fo.xsl file. This file is just a pointer to XSLT stylesheets for PDF available from docbook.sourceforge.net. Simple but effective. A summary : * to build HTML manual with XSLT : make postgres.xml make xslthtml * to build PDF manual with XSLT : make postgres.xml make postgres-A4.fo fop.sh postgres-A4.fo postgres-A4.pdf I think my fop install is broken because I'm not able to build the PDF file... Peter, if I said something stupid, please, tell it. This is just what I understood from your mail and the Makefiles/xslt files you provide. Regards. -- Guillaume.