blob: eab29a6d99fbe8ffe7d8132125360ef852874e80 (
plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
<!-- $Id: tutorial.xml,v 1.1 2007/02/03 22:21:58 kwade Exp $ -->
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
<!-- *************** Bring in Fedora entities *************** -->
<!ENTITY % FEDORA-ENTITIES-EN SYSTEM "fdp-entities.ent">
%FEDORA-ENTITIES-EN;
]>
<chapter id="ch-tutorial">
<title>The Layout of a Tutorial</title>
<para>
In this chapter, you will find an example of a &PROJECT; documentation
parent file. This example is specific to the way the Docs Project uses
DocBook XML. The parent file contains the main structural format of the
book, a link to the entities file that contain common entities that should
be used, and an entity to change the version and date of the tutorial.
</para>
<sect1 id="s1-tutorial-parent">
<title>The Parent File</title>
<para>
Below is a sample parent file:
</para>
<screen>
<computeroutput>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY % FEDORA-ENTITIES-EN SYSTEM "../common/fedora-entities-en.xml">
%FEDORA-ENTITIES-EN;
<!ENTITY VERSION "0.1"> <!-- change version of tutorial here -->
<!ENTITY DOCID "example-tutorial-&VERSION; (2003-07-07)"> <!-- change last modified date here -->
<!ENTITY LEGALNOTICE SYSTEM "../common/legalnotice-en.xml">
]>
<article id="example-tutorial" lang="en">
<articleinfo>
<title>Example Tutorial</title>
<copyright>
<year>2003</year>
<holder>&FORMAL-RHI;</holder>
<holder>Tammy Fox</holder>
</copyright>
<authorgroup>
<author>
<surname>Fox</surname>
<firstname>Tammy</firstname>
</author>
</authorgroup>
&LEGALNOTICE;
</articleinfo>
<section id="some-section">
<title>Some Section</title>
<para>
This is an example section. You can also use sect1, sect2, etc.
</para>
<warning>
<title>Warning</title>
<para>
Example of an admonition.
</para>
</warning>
</section>
<index id="generated-index"></index>
</article>
</computeroutput>
</screen>
</sect1>
<sect1 id="s1-tutorial-license">
<title>Including the License Information</title>
<indexterm>
<primary>tutorial layout</primary>
<secondary>license</secondary>
</indexterm>
<para>
All &PROJECT; manuals <emphasis>must</emphasis> contain the file
<filename>legalnotice.xml</filename>. This file makes the license for
the file the GNU Free Documentation License (FDL).
</para>
<para>
The sample parent file shows how it is included.
</para>
</sect1>
</chapter>
|