Browse code

docbook: folder moved from root to doc

Daniel-Constantin Mierla authored on 07/12/2016 13:55:42
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,111 +0,0 @@
1
-<?xml version='1.0'?>
2
-<!-- vim: sw=2 sta et
3
-
4
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5
-                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
6
-                xmlns:serdoc="http://sip-router.org/xml/serdoc"
7
-                xmlns="http://docbook2x.sourceforge.net/xmlns/Man-XML"
8
-                exclude-result-prefixes="doc"
9
-                version='1.0'
10
-                xml:lang="en">
11
-                
12
-<!-- Don't include stuff with role="admin-guide" -->
13
-<xsl:template match="* [@role='admin-guide']" />
14
-
15
-<!-- Get the docbook2man XSLT -->
16
-<xsl:include href="http://docbook2x.sourceforge.net/latest/xslt/man/docbook.xsl" />
17
-
18
-
19
-<xsl:template match="serdoc:todo">
20
-  <para>
21
-    <xsl:text>TODO</xsl:text>
22
-  </para>
23
-</xsl:template>
24
-
25
-<xsl:template match="serdoc:link">
26
-  <xsl:call-template name="inline-bold" />
27
-</xsl:template>
28
-
29
-<xsl:template match="serdoc:func">
30
-  <xsl:call-template name="inline-bold-monospace"/>
31
-  <xsl:text>()</xsl:text>
32
-</xsl:template>
33
-
34
-<xsl:template match="serdoc:module">
35
-  <xsl:call-template name="inline-bold-monospace"/>
36
-  <xsl:text>(7)</xsl:text>
37
-</xsl:template>
38
-
39
-<xsl:template match="serdoc:modparam">
40
-  <xsl:call-template name="inline-bold-monospace"/>
41
-</xsl:template>
42
-
43
-<xsl:template match="serdoc:coreparam">
44
-  <xsl:call-template name="inline-bold-monospace"/>
45
-</xsl:template>
46
-
47
-<xsl:template match="serdoc:field">
48
-  <xsl:call-template name="inline-bold-monospace"/>
49
-</xsl:template>
50
-
51
-<xsl:template match="serdoc:bin">
52
-  <xsl:call-template name="inline-bold-monospace"/>
53
-  <xsl:text>(1)</xsl:text>
54
-</xsl:template>
55
-
56
-<xsl:template match="serdoc:sbin">
57
-  <xsl:call-template name="inline-bold-monospace"/>
58
-  <xsl:text>(8)</xsl:text>
59
-</xsl:template>
60
-
61
-<xsl:template match="serdoc:file">
62
-  <xsl:call-template name="inline-bold-monospace"/>
63
-  <xsl:text>(5)</xsl:text>
64
-</xsl:template>
65
-
66
-<xsl:template match="serdoc:prototype">
67
-  <xsl:call-template name="inline-bold-monospace"/>
68
-</xsl:template>
69
-
70
-<xsl:template match="serdoc:paraminfo">
71
-  <para>
72
-    <xsl:apply-templates />
73
-  </para>
74
-</xsl:template>
75
-  
76
-<xsl:template match="serdoc:paramtype">
77
-  <br />
78
-  <xsl:text>Type: </xsl:text>
79
-  <xsl:apply-templates />
80
-</xsl:template>
81
-
82
-<xsl:template match="serdoc:paramdefault">
83
-  <br />
84
-  <xsl:text>Default: </xsl:text>
85
-  <xsl:apply-templates />
86
-</xsl:template>
87
-
88
-<xsl:template match="serdoc:fieldinfo">
89
-  <para>
90
-    <xsl:apply-templates />
91
-  </para>
92
-</xsl:template>
93
-
94
-<xsl:template match="serdoc:fieldsql">
95
-  <br />
96
-  <xsl:text>Type: </xsl:text>
97
-  <xsl:call-template name="inline-monospace" />
98
-</xsl:template>
99
-
100
-
101
-
102
-<xsl:template match="optional">
103
-  <xsl:text>[</xsl:text>
104
-  <xsl:apply-templates />
105
-  <xsl:text>]</xsl:text>
106
-</xsl:template>
107
-
108
-
109
-
110
-</xsl:stylesheet>
Browse code

New Docbook processing system.

This is the new and improved version of the docbook build system that
was present in ser and kamailio. It consists of Makefiles, xslt
stylesheets, css stylesheets, and other auxiliary files that are needed
to convert documentation stored in docbook xml format to various output
formats. We currently support the following outputs: HTML, plain-text,
and module README. Other formats (man pages, chunked HTML and possibly
PDF) will be added later.

First of all, we are moving all files that are part of the docbook
processing system into one directory "docbook". Those files were
previously scaterred across multiple directories in the repository and
having them all at one place make the system less error-prone.

We have merged files containing SGML entity definitions from both
projects into a single file. The file is stored in docbook/entities.xml
and this is the file that should be included by all docbook documents
(we will need to update all such files in all modules).

The Kamailio CSS style sheet for module documentation is now becoming
the main CSS stylesheet for HTML documentation generated from docbook
sources. The new stylesheet is stored in docbook/sr-doc.css. The
contents of the file was slighlty updated to make sure that the styles
in the file match HTML elements in XHTML output. With the new system
the default output HTML flavor is XHTML.

The toplevel Makefile.doc is gone. It is being replaced by file
docbook/Makefile. The new makefile has been extensively polished and
improved. This also requires new Makefiles in modules. All the targets
and references that were used to generate the PDF output in SER are
gone, we were using proprietary FOP processor which is not generally
available. All configuration options that can be overriden from
module/doc Makefiles are extensively commented. The new Makefile can
save the output being generated into a directory specified on the
command line:
$ output_dir=/html make html
The default target of the Makefile is HTML. There is a new target that
can be used generate module README:
$ make readme

The file that should be included from module Makefiles is
docbook/Makefile.modules. At present the file only includes the main
Makefile, but in the future some of the targets that are particular
to module documentation will be moved to this file.

The XML catalog received a small facelift, too. By default the catalog
references /etc/xml/catalog. References to dbschema DTD and XSL files
(dbschema is the scripting system used to generate SQL files in SER)
are gone. They do not belong into this file.

All references to Drupal and drupal related xsl stylesheets are gone.
Those files were used to generate HTML files suitable for inclusion
into Drupal pages at iptel.org.

File doc/kam_module_faq.xml has also been removed, this file was empty,
it was probably added because it was included by far too many docbook
documents in modules. Since I wrote a script to do some compatibility
changes in module docbook files, I taught it to remove the reference
to the file from all docbook files and then deleted the file.

All files in directory "docbook" are briefly described in
docbook/README.

The new system adopted Kamailio costumizations of the docbook stylesheet
that is used to generate READMEs. There is a new stylesheet called
readme.xsl that contains all options that should only be applied when
READMEs are being generated.

The stylesheet that generates man pages from docbook has been moved
from doc/stylesheets to docbook/man.xsl. We do not have yet support for
man pages in the docbook Makefile, this feature will be added later.

New features:
* Automatic dependency calculation. We have a XSL stylesheet which
traverses the source docbook document and produces a list of files
included in the document. This list is then included in the main
Makefile to calculate dependencies. That means you can split your
document into multiple files and the system will always correctly
rebuild the file.

* Support for document inclusion with xi:include. All source docbook
files are processed with the support for xi:include enabled which
makes it possible to include other documents without the need to
use SGML entities to include external files.

* Improved top level make file, among other things the makefile is now
much more flexible, the module can specify different source document
for each type of produced output. The makefile can generate module
READMEs. The output directory is configurable, which is useful if you
need to build a collection of html pages to be uploaded to a server.

* Separate stylesheet to customize the format of module README files.

* Supported output formats:
README
XHTML (single file)
XHTML (multiple files)
Plain-text

* Normalized screens: There is no longer the need to pay attention to
the leading and trailing white space in data of <screen> (and similar)
elements. Stylesheet common.xsl contains a template that does that
automatically (this isn't really a new feature, is was present in
the original ser docbook processing system).

Jan Janak authored on 24/04/2009 00:13:45
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,111 @@
1
+<?xml version='1.0'?>
2
+<!-- vim: sw=2 sta et
3
+-->
4
+
5
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6
+                xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
7
+                xmlns:serdoc="http://sip-router.org/xml/serdoc"
8
+                xmlns="http://docbook2x.sourceforge.net/xmlns/Man-XML"
9
+                exclude-result-prefixes="doc"
10
+                version='1.0'
11
+                xml:lang="en">
12
+                
13
+<!-- Don't include stuff with role="admin-guide" -->
14
+<xsl:template match="* [@role='admin-guide']" />
15
+
16
+<!-- Get the docbook2man XSLT -->
17
+<xsl:include href="http://docbook2x.sourceforge.net/latest/xslt/man/docbook.xsl" />
18
+
19
+
20
+<xsl:template match="serdoc:todo">
21
+  <para>
22
+    <xsl:text>TODO</xsl:text>
23
+  </para>
24
+</xsl:template>
25
+
26
+<xsl:template match="serdoc:link">
27
+  <xsl:call-template name="inline-bold" />
28
+</xsl:template>
29
+
30
+<xsl:template match="serdoc:func">
31
+  <xsl:call-template name="inline-bold-monospace"/>
32
+  <xsl:text>()</xsl:text>
33
+</xsl:template>
34
+
35
+<xsl:template match="serdoc:module">
36
+  <xsl:call-template name="inline-bold-monospace"/>
37
+  <xsl:text>(7)</xsl:text>
38
+</xsl:template>
39
+
40
+<xsl:template match="serdoc:modparam">
41
+  <xsl:call-template name="inline-bold-monospace"/>
42
+</xsl:template>
43
+
44
+<xsl:template match="serdoc:coreparam">
45
+  <xsl:call-template name="inline-bold-monospace"/>
46
+</xsl:template>
47
+
48
+<xsl:template match="serdoc:field">
49
+  <xsl:call-template name="inline-bold-monospace"/>
50
+</xsl:template>
51
+
52
+<xsl:template match="serdoc:bin">
53
+  <xsl:call-template name="inline-bold-monospace"/>
54
+  <xsl:text>(1)</xsl:text>
55
+</xsl:template>
56
+
57
+<xsl:template match="serdoc:sbin">
58
+  <xsl:call-template name="inline-bold-monospace"/>
59
+  <xsl:text>(8)</xsl:text>
60
+</xsl:template>
61
+
62
+<xsl:template match="serdoc:file">
63
+  <xsl:call-template name="inline-bold-monospace"/>
64
+  <xsl:text>(5)</xsl:text>
65
+</xsl:template>
66
+
67
+<xsl:template match="serdoc:prototype">
68
+  <xsl:call-template name="inline-bold-monospace"/>
69
+</xsl:template>
70
+
71
+<xsl:template match="serdoc:paraminfo">
72
+  <para>
73
+    <xsl:apply-templates />
74
+  </para>
75
+</xsl:template>
76
+  
77
+<xsl:template match="serdoc:paramtype">
78
+  <br />
79
+  <xsl:text>Type: </xsl:text>
80
+  <xsl:apply-templates />
81
+</xsl:template>
82
+
83
+<xsl:template match="serdoc:paramdefault">
84
+  <br />
85
+  <xsl:text>Default: </xsl:text>
86
+  <xsl:apply-templates />
87
+</xsl:template>
88
+
89
+<xsl:template match="serdoc:fieldinfo">
90
+  <para>
91
+    <xsl:apply-templates />
92
+  </para>
93
+</xsl:template>
94
+
95
+<xsl:template match="serdoc:fieldsql">
96
+  <br />
97
+  <xsl:text>Type: </xsl:text>
98
+  <xsl:call-template name="inline-monospace" />
99
+</xsl:template>
100
+
101
+
102
+
103
+<xsl:template match="optional">
104
+  <xsl:text>[</xsl:text>
105
+  <xsl:apply-templates />
106
+  <xsl:text>]</xsl:text>
107
+</xsl:template>
108
+
109
+
110
+
111
+</xsl:stylesheet>