3 This directory contains the source files needed to build the:
5 - Wireshark User's guide
6 - Wireshark Developer's Guide
11 To build everything, 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 By default the Makefile generates HTML in single page and multiple (chunked)
24 Win32 only: The optional output format CHM has to be enabled by setting
25 HHC_EXE in ..\config.nmake.
31 Unix only: Makefile and catalog.xml
32 -----------------------------------------------
33 You have to edit the settings in these files, to point to the DTD/XSL files
34 and fop. (Makefile.auto.am is currently experimental and will probably NOT
35 work - any progress on this would be appreciated!)
37 Win32 only: ..\config.nmake
38 ---------------------------------------
39 Settings moved to: ..\config.nmake.
47 DocBook "official" XML DTD V4.2:
48 http://www.oasis-open.org/docbook/xml/
49 (available as a package for Linux / cygwin)
53 The "official" XSL stylesheets from Norman Walsh:
54 http://docbook.sourceforge.net/
55 (available as a package for Linux / cygwin)
59 The XSL processor xsltproc.
60 (available as a package for Linux / cygwin)
64 Needed to validate if the .xml files conform to the Docbook/XML DTD.
65 (available as a package for Linux / cygwin)
67 FOP processor (for PDF generation only)
68 ---------------------------------------
69 FOP processor from the apache project:
70 http://xml.apache.org/fop/
71 FOP is a JAVA program, so you need to have a JAVA environment installed.
72 I have put the fop-0.20.5 dir right into the docbook sources dir. If you have
73 it somewhere else, you'll have to change the setting in the Makefile
74 (or config.nmake for Win32).
76 As I got OutOfMemoryException when running fop, I had to insert -Xmx256m into
77 the last line of the fop.bat file from:
78 java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
80 java -Xmx256m -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
81 This should be added automatically on unixish systems.
83 JIMI (for PDF generation only)
84 ------------------------------
85 Jimi is a JAVA class library for managing images.
86 In addition to FOP, be sure to also have installed JAI and/or jimi to be able
87 to use/convert the png graphics files. The fop release note webpage tells how
90 http://java.sun.com/products/jimi/
91 then extract the archive, then copy JimiProClasses.zip to FOP's lib dir and rename it to jimi-1.0.jar.
93 Win32 only: HTML help compiler (for .chm generation only)
94 ---------------------------------------------------------
95 hhc compiler (hhc.exe) from Microsoft:
96 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp
102 See ..\config.nmake for Win32 settings.
104 Tool/File Cygwin Package Opt./Mand. Comments
105 --------- -------------- ---------- --------
108 xsl stylesheets: docbook-xsl M docbook.xsl, chunk.xsl and htmlhelp.xsl
109 docbookx.dtd: docbook_xml42 M
110 fop: - O URL: http://xml.apache.org/fop/ - install it into fop-0.20.5 to keep defaults from config.nmake
111 jimi: - O URL: http://java.sun.com/products/jimi/ - see above
112 hhc: - O URL: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp
115 Packages for Suse 9.3
116 ---------------------
117 Tool/File Package Opt./Mand. Comments
118 --------- ------- ---------- --------
121 xsl stylesheets: docbook-xsl-stylesheets M docbook.xsl and chunk.xsl
122 docbookx.dtd: docbook_4 M
124 jimi: - O get it from http://java.sun.com/products/jimi/ - see above
129 Like with all packages do ...
130 Check dependencies: emerge -p <package>
131 Install it: emerge <package>
133 Tool/File Package Opt./Mand. Comments
134 --------- ------- ---------- --------
137 xsl stylesheets: docbook-xsl-stylesheets M docbook.xsl and chunk.xsl
138 Necessary docbook catalogs are built automatically by portage in /etc/xml and /etc/sgml
139 docbook.xsl and chunk.xsl using "/usr/bin/build-docbook-catalog".
140 So docbook runs out of the box on Gentoo.
141 docbookx.dtd: docbook-xml-dtd M
142 fop: fop O Has a lot of JAVA dependencies.
143 jimi: sun-jimi O Used by fop.
144 Quanta+ quanta or kdewebdev O Nice HTML/XML/SGML and Docbook editor with Syntaxhighlighting, Autocompletion, etc.
146 Tip: The actual DTD version of Gentoo is 4.4, but wireshark docs still use 4.2.
147 To be able to generate the docs, change the version in the second line of developer-guide.xml
148 or install an older version of the DTD.
149 See into the Gentoo handbook howto unmask old versions.
152 Packages for Fedora Core
153 ------------------------
162 xmllint: libxml2-utils
163 xsl stylesheets: docbook-xsl
164 chunk.xsl: docbook-xsl
165 htmlhelp.xsl: docbook-xsl
166 docbookx.dtd: docbook-xml
168 jimi: http://java.sun.com/products/jimi/ - see above
172 Makefile / Makefile.nmake:
173 --------------------------
174 There are several ways and tools to do these conversion, following is a short
175 description of the way the makefile targets are doing things and which output
176 files required for a release in that format.
179 Will generate both guide's in all available output formats (see below).
182 Will generate Wireshark User's Guide in all available output formats.
185 The HTML file is generated using xsltproc and the XSL stylesheets from
186 Norman Walsh. This is a conversion into a single HTML page.
189 make wsug_html_chunked
190 The HTML files are generated using xsltproc and the XSL stylesheets from
191 Norman Walsh. This is a conversion into chunked (multiple) HTML pages.
192 output: wsug_html_chunked
196 The PDF is generated using an intermediate format named XSL-FO (XSL
197 formatting objects). xsltproc converts the XML to a FO file, and then fop
198 (apache's formatting object processor) is used to generate the PDF document,
199 in US letter or A4 paper format.
200 TIP: You will get lot's of INFO/WARNING/ERROR messages when generating pdf,
201 but conversation works just fine.
202 output: user-guide-us.pdf user-guide-a4.pdf
205 On Win32 platforms, the "famous" HTML help format can be generated by using a
206 special HTML chunked conversion and then use the htmlhelp compiler from
210 Using the prefix wsdg_ instead of wsug_ will build the same targets but for the
211 Wireshark Developer's Guide.
213 The makefile is written to be run with gmake on UNIX/Linux platforms. Win32
214 platforms have to use the cygwin environment (Microsoft nmake is not
218 Docbook web references:
219 -----------------------
220 Some web references to further documentation about Docbook/XML and Docbook XSL conversions:
222 DocBook: The Definitive Guide
223 by Norman Walsh and Leonard Muellner
224 http://www.docbook.org/tdg/en/html/docbook.html
226 DocBook XSL: The Complete Guide
228 http://www.sagehill.net/docbookxsl/index.html
230 Documention with DocBook on Win32
232 http://www.codeproject.com/winhelp/docbook_howto.asp
234 FO Parameter Reference
236 http://docbook.sourceforge.net/release/xsl/current/doc/fo/