htmlhelp generation

Started by Andreas Pflugalmost 22 years ago11 messagespatches
Jump to latest
#1Andreas Pflug
pgadmin@pse-consulting.de

The attached Makefile patch together with stylesheet-hh.xsl allows "make
htmlhelp". stylesheet-hh.xsl is derived from stylesheet.xsl, after some
advise from PeterE.
The result isn't perfect, but quite usable.

Regards,
Andreas

Attachments:

doc.difftext/x-patch; name=doc.diffDownload+3-0
stylesheet-hh.xsltext/xml; name=stylesheet-hh.xslDownload
#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Andreas Pflug (#1)
Re: htmlhelp generation

Andreas Pflug <pgadmin@pse-consulting.de> writes:

The attached Makefile patch together with stylesheet-hh.xsl allows "make
htmlhelp". stylesheet-hh.xsl is derived from stylesheet.xsl, after some
advise from PeterE.

Um ... what's an htmlhelp?

regards, tom lane

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#2)
Re: htmlhelp generation

Am Montag, 22. November 2004 22:23 schrieb Tom Lane:

Um ... what's an htmlhelp?

It's the kind of format the Windows'ish programs use for their internal help
browsers. It consists of regular HTML plus some index files. pgAdmin needs
it, and maybe the Windows binary package would like it as well.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#4Peter Eisentraut
peter_e@gmx.net
In reply to: Andreas Pflug (#1)
Re: htmlhelp generation

Am Montag, 22. November 2004 18:34 schrieb Andreas Pflug:

The attached Makefile patch together with stylesheet-hh.xsl allows "make
htmlhelp". stylesheet-hh.xsl is derived from stylesheet.xsl, after some
advise from PeterE.

Installed.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#5Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#4)
Re: htmlhelp generation

Peter Eisentraut <peter_e@gmx.net> writes:

Am Montag, 22. November 2004 18:34 schrieb Andreas Pflug:

The attached Makefile patch together with stylesheet-hh.xsl allows "make
htmlhelp". stylesheet-hh.xsl is derived from stylesheet.xsl, after some
advise from PeterE.

Installed.

It would be nice if "make clean" would get rid of what this produces.

regards, tom lane

#6Magnus Hagander
magnus@hagander.net
In reply to: Tom Lane (#5)
Re: htmlhelp generation

The attached Makefile patch together with stylesheet-hh.xsl

allows "make

htmlhelp". stylesheet-hh.xsl is derived from stylesheet.xsl,

after some

advise from PeterE.

Installed.

From what I can tell, this XSL will download and import another XSL from
docbook.sourceforge.net every time you run "make" on it. Perhaps a copy
of this file should be included in cvs to make sure we can still build
when sourceforge is down?

//Magnus

#7Andrew Dunstan
andrew@dunslane.net
In reply to: Magnus Hagander (#6)
Re: htmlhelp generation

Magnus Hagander wrote:

From what I can tell, this XSL will download and import another XSL from

docbook.sourceforge.net every time you run "make" on it. Perhaps a copy
of this file should be included in cvs to make sure we can still build
when sourceforge is down?

Using xsl:import here is not a good idea even if sourceforge isn't down
- the imported file could change without our knowing, and thus the
principle of least surprise would be violated, ISTM.

cheers

andrew

#8Peter Eisentraut
peter_e@gmx.net
In reply to: Magnus Hagander (#6)
Re: htmlhelp generation

Magnus Hagander wrote:

From what I can tell, this XSL will download and import another XSL
from docbook.sourceforge.net every time you run "make" on it.

Normally, you or your operating system should set up an XML catalog
that maps that URI to a local copy. For example, my system has

/etc/xml/catalog:
...
<delegateSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/&quot; catalog="file:///etc/xml/docbook-xsl.xml"/>

and

/etc/xml/docbook-xsl.xml:
...
<delegateSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/&quot; catalog="file:///usr/share/xml/docbook/stylesheet/nwalsh/catalog.xml"/>

This is no different from the public identifier mapping in the SGML
world, only that in the XML case it is possible, as a fallback, to
fetch the data over the net. Whether you actually do that is between
you and your XSLT processor.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#9Magnus Hagander
magnus@hagander.net
In reply to: Peter Eisentraut (#8)
Re: htmlhelp generation

From what I can tell, this XSL will download and import another XSL
from docbook.sourceforge.net every time you run "make" on it.

Normally, you or your operating system should set up an XML catalog
that maps that URI to a local copy. For example, my system has

/etc/xml/catalog:
...

Hmm. Never seen that in any of the XSL systems I've used. There is
certainly no such system in the XSLT processors that are included in
Windows these days. But since those aren't used to build the docs,
that's not a good reference point I guess. If there is a standard way to
do it, there is less need to include anything in our cvs. IIRC, we don't
include the docbook stylesheets either, right?

Which brings up a different point - has anybody managed to set up a
system to build the docs *on win32*?

//Magnus

#10Peter Eisentraut
peter_e@gmx.net
In reply to: Magnus Hagander (#9)
Re: htmlhelp generation

Magnus Hagander wrote:

Hmm. Never seen that in any of the XSL systems I've used. There is
certainly no such system in the XSLT processors that are included in
Windows these days.

I don't know what's "included" in Windows, but all the usual ones you
can download from the net support XML catalogs.

Which brings up a different point - has anybody managed to set up a
system to build the docs *on win32*?

Cygwin includes openjade, and xsltproc runs natively, so there shouldn't
be much of a problem.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

#11Christopher Kings-Lynne
chriskl@familyhealth.com.au
In reply to: Peter Eisentraut (#3)
Re: htmlhelp generation

Um ... what's an htmlhelp?

It's the kind of format the Windows'ish programs use for their internal help
browsers. It consists of regular HTML plus some index files. pgAdmin needs
it, and maybe the Windows binary package would like it as well.

I've trivially generated them from docbook xml using the htmlhelp.xsl
stylesheet that comes with docbook and the free html help compiler from MS.

Chris