Re: Switching to XML

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: Switching to XML
Дата
Msg-id 457DF846.9080502@lelarge.info
обсуждение исходный текст
Ответ на Re: Switching to XML  (David Blewett <david@dawninglight.net>)
Ответы Re: Switching to XML  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 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.
<!-- http://abs.traduc.org/
     http://lfs.traduc.org/
     http://docs.postgresqlfr.org/ -->

В списке pgsql-docs по дате отправления:

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Switching to XML
Следующее
От: David Blewett
Дата:
Сообщение: Re: Switching to XML