summaryrefslogtreecommitdiff
path: root/lib/erl_docgen/doc/src/user_guide_dtds.xml
blob: 0bebf43cdb61e09a387750ac9799e54b30be7e97 (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
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
182
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE chapter SYSTEM "chapter.dtd">

<chapter>
  <header>
    <copyright>
      <year>1997</year><year>2016</year>
      <holder>Ericsson AB. All Rights Reserved.</holder>
    </copyright>
    <legalnotice>
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
      You may obtain a copy of the License at
 
          http://www.apache.org/licenses/LICENSE-2.0

      Unless required by applicable law or agreed to in writing, software
      distributed under the License is distributed on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
      See the License for the specific language governing permissions 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 <seeguide marker="#chapterDTD">chapter</seeguide> 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
      <seeguide marker="header_tags">&lt;header&gt;</seeguide>,
      an optional
      <seeguide marker="#descriptionTAG">&lt;description&gt;</seeguide>,
      followed by one or more
      <seeguide marker="#includeTAG">&lt;include&gt;</seeguide>.</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 <seeguide marker="block_tags">block tags</seeguide> 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
      <seeguide marker="header_tags">&lt;header&gt;</seeguide>,
      an optional introduction consisting of any combination of
      <seeguide marker="block_tags">block tags</seeguide>,
      followed by one or more
      <seeguide marker="#sectionTAG">&lt;section&gt;</seeguide>.</p>
  </section>

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

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

    <p>Contains an optional
      <seeguide marker="inline_tags#markerTAG">&lt;marker&gt;</seeguide>,
      a <seeguide marker="#titleTAG">&lt;title&gt;</seeguide>,
      followed by any combination and any number of
      <seeguide marker="block_tags">block tags</seeguide> 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>