Skip site navigation (1) Skip section navigation (2)

Re: Switching to XML

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: David Blewett <david(at)dawninglight(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-docs(at)postgresql(dot)org
Subject: Re: Switching to XML
Date: 2006-12-12 00:31:02
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-docs
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 To get .fo output (required to
build a PDF file), "make". This command will use the
stylesheet-fo.xsl file. This file is just a pointer to XSLT stylesheets
for PDF available from 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.pdf

I think my fop install is broken because I'm not able to build the PDF

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.


<!-- -->

In response to


pgsql-docs by date

Next:From: David BlewettDate: 2006-12-12 01:39:11
Subject: Re: Switching to XML
Previous:From: Magnus HaganderDate: 2006-12-11 22:04:57
Subject: Re: Switching to XML

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group