aboutsummaryrefslogtreecommitdiffstats
path: root/lib/docbuilder/doc/src/user_guide_dtds.xml
blob: a2db44f830deb32d6c012fd3194c2f8664dcbdc8 (plain) (blame)
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<?xml version="1.0" encoding="latin1" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">

<chapter>
  <header>
    <copyright>
      <year>1997</year><year>2009</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      The contents of this file are subject to the Erlang Public License,
      Version 1.1, (the "License"); you may not use this file except in
      compliance with the License. You should have received a copy of the
      Erlang Public License along with this software. If not, it can be
      retrieved online at http://www.erlang.org/.
    
      Software distributed under the License is distributed on an "AS IS"
      basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
      the License for the specific language governing rights and limitations
      under the License.
    
    </legalnotice>

    <title>User's Guide DTDs</title>
    <prepared></prepared>
    <docno></docno>
    <date></date>
    <rev></rev>
    <file>user_guide_dtds.xml</file>
  </header>

  <section>
    <marker id="partDTD"></marker>
    <title>The part DTD</title>

    <p>The <c>part</c> DTD is intended for a "normal" document, like
      the User's Guide or Release Notes. First are some paragraphs
      introducing the main contents. After that follows chapters,
      written in separate files with
      the <seealso marker="#chapterDTD">chapter</seealso> DTD.</p>

    <p>Example:</p>
    <pre>
&lt;?xml version="1.0" encoding="latin1" ?>
&lt;!DOCTYPE part SYSTEM "part.dtd"&gt;
&lt;part&gt;
  &lt;header&gt;
    &lt;title&gt;The chapter title&lt;/title&gt;
    &lt;prepared&gt;The author&lt;/prepared&gt;
    &lt;docno/&gt;
    &lt;date/&gt;
    &lt;rev/&gt;
  &lt;/header&gt;

  &lt;description&gt;
    &lt;p&gt;Some text..&lt;/p&gt;
  &lt;/description&gt;

  &lt;include file="file1"&gt;&lt;/include&gt;
  &lt;include file="file2"&gt;&lt;/include&gt;
&lt;/part&gt;
    </pre>
  </section>

  <section>
    <marker id="partTAG"></marker>
    <title>&lt;part></title>

    <p>The top level tag of a <c>part</c> DTD.</p>

    <p>Contains a
      <seealso marker="header_tags">&lt;header&gt;</seealso>,
      an optional
      <seealso marker="#descriptionTAG">&lt;description&gt;</seealso>,
      followed by one or more
      <seealso marker="#includeTAG">&lt;include&gt;</seealso>.</p>
  </section>

  <section>
    <marker id="descriptionTAG"/>
    <title>&lt;description&gt;</title>

    <p>The introduction after the title and before the bulk of
      included chapters/manual pages.</p>

    <p>Contains any combination and any number
      of <seealso marker="block_tags">block tags</seealso> except
      <c><![CDATA[<image>]]></c> and <c><![CDATA[<table>]]></c>.</p>
  </section>

  <section>
    <marker id="includeTAG"></marker>
    <title>&lt;include&gt;</title>

    <p>An empty tag. The attribute <c>file</c> specifies a file to
      include. The <c>.xml</c> file extension should be omitted.</p>

    <p>Example:</p>
    <pre>
&lt;include file="notes">&lt;/include>
    </pre>
  </section>

  <section>
    <marker id="chapterDTD"></marker>
    <title>The chapter DTD</title>

    <p>The <c>chapter</c> DTD is intended for a chapter in a User's
      Guide or similar with text divided into sections, which can be
      nested.</p>

    <p>Example:</p>
    <pre>
&lt;?xml version="1.0" encoding="latin1" ?>
&lt;!DOCTYPE chapter SYSTEM "chapter.dtd">
&lt;chapter>
  &lt;header>
    &lt;title>Title on first level&lt;/title>
    &lt;prepared/>
    &lt;docno/>
    &lt;date/>
    &lt;rev/>
  &lt;/header>
  
  &lt;p>Introduction...&lt;/p>

  &lt;section>
    &lt;title>Title on second level&lt;/title>

    &lt;p>First paragraph.&lt;/p>

    &lt;p>Second paragraph etc.&lt;/p>

    &lt;section>
      &lt;title>Title on third level&lt;/title>

      &lt;p>...&lt;/p>
    &lt;/section>
  &lt;/section>

  ...
&lt;/chapter>
    </pre>
  </section>

  <section>
    <marker id="chapterTAG"></marker>
    <title>&lt;chapter&gt;</title>

    <p>The top level tag of a <c>chapter</c> DTD.</p>

    <p>Contains a
      <seealso marker="header_tags">&lt;header&gt;</seealso>,
      an optional introduction consisting of any combination of
      <seealso marker="block_tags">block tags</seealso>,
      followed by one or more
      <seealso marker="#sectionTAG">&lt;section&gt;</seealso>.</p>
  </section>

  <section>
    <marker id="sectionTAG"></marker>
    <title>&lt;section&gt;</title>

    <p>Subdivision of a chapter.</p>

    <p>Contains an optional
      <seealso marker="inline_tags#markerTAG">&lt;marker&gt;</seealso>,
      a <seealso marker="#titleTAG">&lt;title&gt;</seealso>,
      followed by any combination and any number of
      <seealso marker="block_tags">block tags</seealso> and
      <c><![CDATA[<section>]]></c>.</p>
  </section>

  <section>
    <marker id="titleTAG"></marker>
    <title>&lt;title&gt;</title>

    <p>Section title, contains plain text.</p>
  </section>
</chapter>