This repository has been archived by the owner on Feb 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
executable file
·66 lines (46 loc) · 2.13 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
Docbook Toolchain Setup and Usage
=================================
Installation
------------
1. Install `xsltproc`.
2. Get the latest Docbook XSL stylesheet distribution from:
https://sourceforge.net/project/showfiles.php?group_id=21935
Tested docbook-xsl stylesheet version is 1.75.2.
3. Fix indexterm bug in xsl stylesheet:
inside the xsl stylesheet distribution in manpages/inline.xsl remove these lines:
<!-- * indexterm instances produce groff comments like this: -->
<!-- * .\" primary: secondary: tertiary -->
<xsl:template match="indexterm">
<xsl:text>.\" </xsl:text>
<xsl:apply-templates/>
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="primary">
<xsl:value-of select="normalize-space(.)"/>
</xsl:template>
<xsl:template match="secondary|tertiary">
<xsl:text>: </xsl:text>
<xsl:value-of select="normalize-space(.)"/>
</xsl:template>
Usage
-----
Preparation:
1. Get netatalk-doc from CVS
2. `cd` to "netatalk-doc"
Create manpages:
3. XSL=<path to XSL stylesheets> VERSION=2.x make man
4. Copy the generated man pages to your CVS working copy:
DIR=<path to netatalk> make install
Create HTML:
5. XSL=<path to XSL stylesheets> VERSION=2.x make html
The generated html files are then inside the directory html.
Editing Docbook Sources
-----------------------
Free WYSIWYG editor with only one minor drawback is XMLEditor from XMLmind:
http://www.xmlmind.com/xmleditor/persoedition.html
Drawback: in order to be able to edit any of the nested xml files, you have to "promote" them to valid Docbook
files by referencing the Docbook DTD: insert as line 2+3:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
These changes will however prevent XMLeditor from opening the master xml file manual.xml. Before further processing
can be done these changes then have to be reverted for any changed file.