3 This directory contains the source files needed to build the:
9 Wireshark Developer's Guide (in an early state).
11 To build both Guide's, just do 'make', but see requirements below.
14 The guides are written in Docbook/XML (formerly Docbook/SGML). This format is
15 now used by many other documentation projects, e.g. "the linux documentation
18 To get HTML, PDF or other output formats, conversions are done using XSL
19 stylesheets, which provides a flexible way for these conversions.
21 The current Makefile is running under Win32 in the cygwin environment, so it uses
22 GNU make and such. It should be pretty easy to use it in UNIX environments too.
23 Using Microsoft make (nmake) is not supported.
25 By default the Makefile generates HTML in single page and multiple (chunked) formats
26 and PDF. The optional output format CHM has to be enabled in the Makefile.
32 Settings in Makefile and catalog.xml
33 ------------------------------------
34 You have to edit the settings in these files, to point to the DTD/XSL files, fop (and possibly hhc).
38 DocBook "official" XML DTD V4.2 from:
39 http://www.oasis-open.org/docbook/xml/
40 (or using cygwin package docbook-xml42)
44 The "official" XSL stylesheets from Norman Walsh:
45 http://docbook.sourceforge.net/
46 (or using cygwin package docbook-xsl)
50 The XSL processor xsltproc.
51 (it seems to be packages libxml2 and libxslt, ... please give comments)
53 FOP processor (for PDF generation only)
54 ---------------------------------------
55 FOP processor from the apache project:
56 http://xml.apache.org/fop/
57 FOP is a JAVA program, so you need to have a JAVA environment installed.
58 I have put the fop-0.20.5 dir right into the sources dir. If you have it somewhere else,
59 you'll have to change the setting in the Makefile.
61 Be sure to also have installed JAI and/or jimi to be able to use/convert the png graphics files.
62 The fop release note webpage tells how to do it:
64 http://java.sun.com/products/jimi/
65 then extract the archive, then copy JimiProClasses.zip to FOP's lib dir and rename it to jimi-1.0.jar.
67 As I got OutOfMemoryException when running fop, I had to insert -Xmx256m into the last line of the fop.bat file from:
68 java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
70 java -Xmx256m -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
71 This should be added automatically on unixish systems.
73 HTML help compiler (for chm file generation only)
74 -------------------------------------------------
75 hhc compiler from Microsoft:
76 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp
85 docbook.xsl: docbook-xsl-stylesheets
86 chunk.xsl: docbook-xsl-stylesheets
87 htmlhelp.xsl: docbook-xsl-stylesheets
88 docbookx.dtd: docbook_4
89 jimi: N/A - build yourself - see above
95 Packages for Fedora Core
96 ------------------------
104 xmllint: libxml2-utils
106 docbook.xsl: docbook-xsl
107 chunk.xsl: docbook-xsl
108 htmlhelp.xsl: docbook-xsl
109 docbookx.dtd: docbook-xml
110 jimi: N/A - build yourself - see above
114 There are several ways and tools to do these conversion, following is a short
115 description of the way the makefile targets are doing things and which output
116 files required for a release in that format.
119 Will generate both guide's in all available output formats (see below).
122 Will generate Wireshark User's Guide in all available output formats.
125 The HTML file is generated using xsltproc and the XSL stylesheets from
126 Norman Walsh. This is a conversion into a single HTML page.
129 make wsug_html_chunked
130 The HTML files are generated using xsltproc and the XSL stylesheets from
131 Norman Walsh. This is a conversion into chunked (multiple) HTML pages.
132 output: wsug_html_chunked
136 The PDF is generated using an intermediate format named XSL-FO (XSL
137 formatting objects). xsltproc converts the XML to a FO file, and then fop
138 (apache's formatting object processor) is used to generate the PDF document,
139 in US letter or A4 paper format.
140 TIP: You will get lot's of INFO/WARNING/ERROR messages when generating pdf,
141 but conversation works just fine.
142 output: user-guide-us.pdf user-guide-a4.pdf
145 On Win32 platforms, the "famous" HTML help format can be generated by using a
146 special HTML chunked conversion and then use the htmlhelp compiler from
150 Using the prefix wsdg_ instead of wsug_ will build the same targets but for the
151 Wireshark Developer's Guide.
153 The makefile is written to be run with gmake on UNIX/Linux platforms. Win32
154 platforms have to use the cygwin environment (Microsoft nmake is not
158 Docbook web references:
159 -----------------------
160 Some web references to further documentation about Docbook/XML and Docbook XSL conversions:
162 DocBook: The Definitive Guide
163 by Norman Walsh and Leonard Muellner
164 http://www.docbook.org/tdg/en/html/docbook.html
166 DocBook XSL: The Complete Guide
168 http://www.sagehill.net/docbookxsl/index.html
170 Documention with DocBook on Win32
172 http://www.codeproject.com/winhelp/docbook_howto.asp
174 FO Parameter Reference
176 http://docbook.sourceforge.net/release/xsl/current/doc/fo/