File: Dump_File.xml

package info (click to toggle)
publican 2.8-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,404 kB
  • sloc: xml: 8,372; perl: 7,501; makefile: 34; sh: 6
file content (235 lines) | stat: -rw-r--r-- 11,105 bytes parent folder | download
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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE appendix PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % BOOK_ENTITIES SYSTEM "Users_Guide.ent">
%BOOK_ENTITIES;
]>
<appendix id="dump_file">
	<title>Contents of the website dump file</title>
	<para>
		The dump file for a <application>Publican</application>-generated website contains some basic site configuration details, together with details of every document published on the site. The site configuration details are:
	</para>
	<variablelist>
		<varlistentry>
			<term><sgmltag>&lt;host&gt;</sgmltag></term>
			<listitem>
				<para>
					The URL to the root of the documentation site, as set by the <parameter>host</parameter> parameter in the site configuration file.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;def_lang&gt;</sgmltag></term>
			<listitem>
				<para>
					The default language of the documentation on the website, as set by the <parameter>def_lang</parameter> parameter in the site configuration file. 
				</para>
			</listitem>
		</varlistentry>
	</variablelist>
	<para>
		Each document, in each language, in each format has a separate record. These records contain the following data:
	</para>
	<variablelist>
		<varlistentry>
			<term><sgmltag>&lt;name&gt;</sgmltag></term>
			<listitem>
				<para>
					The title of the document, generated from the <sgmltag>&lt;title&gt;</sgmltag> tag in the <literal>Book_Info.xml</literal>, <literal>Article_Info.xml</literal>, or <literal>Set_Info.xml</literal> file unless overridden by the <parameter>docname</parameter> parameter in the <filename>publican.cfg</filename> file. Any spaces in the title are replaced by underscores.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;ID&gt;</sgmltag></term>
			<listitem>
				<para>
					A unique ID number for this document, in this format, in this language.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;abstract&gt;</sgmltag></term>
			<listitem>
				<para>
					A brief summary of the content of the document, generated from the <sgmltag>&lt;abstract&gt;</sgmltag> tag in the <literal>Book_Info.xml</literal>, <literal>Article_Info.xml</literal>, or <literal>Set_Info.xml</literal> file. <application>Publican</application> uses this same content to generate the <literal>%description</literal> section of the spec file when it packages a document. If the <sgmltag>&lt;abstract&gt;</sgmltag> is translated, this field contains the translated text.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;format&gt;</sgmltag></term>
			<listitem>
				<para>
					The format in which the document is produced — <literal>html</literal> for multi-page html, <literal>html-single</literal> for single-page html, <literal>pdf</literal> for PDF, and <literal>epub</literal> for EPUB.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;language&gt;</sgmltag></term>
			<listitem>
				<para>
					The language code for the document. Refer to <xref linkend="appe-Users_Guide-Language_codes"/> for more information about language codes in XML.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;name_label&gt;</sgmltag></term>
			<listitem>
				<para>
					The name of the document as it appears in the site table of contents. This label can be set with the <parameter>web_name_label</parameter> parameter in the document's <filename>publican.cfg</filename> file. Otherwise, the field is empty for a document in its original language, or uses the translated title of the document in a translated language. Any spaces in the name label are replaced by underscores.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;product&gt;</sgmltag></term>
			<listitem>
				<para>
					The product that the document describes, generated from the <sgmltag>&lt;productname&gt;</sgmltag> tag in the <literal>Book_Info.xml</literal>, <literal>Article_Info.xml</literal>, or <literal>Set_Info.xml</literal> file unless overridden by the <parameter>product</parameter> parameter in the <filename>publican.cfg</filename> file. Any spaces in the product name are replaced by underscores.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;product_label&gt;</sgmltag></term>
			<listitem>
				<para>
					The name of the product as it appears in the site table of contents. This label can be set with the <parameter>web_product_label</parameter> parameter in the document's <filename>publican.cfg</filename> file. Otherwise, the field is empty for a document in its original language, or uses the translated title of the document in a translated language. Any spaces in the name label are replaced by underscores.
				</para>
				<para>
					If the product label is set to <literal>UNUSED</literal>, no heading for this product appears in the website tables of contents.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;subtitle&gt;</sgmltag></term>
			<listitem>
				<para>
					A one-line description of the content of the document, generated from the <sgmltag>&lt;subtitle&gt;</sgmltag> tag in the <literal>Book_Info.xml</literal>, <literal>Article_Info.xml</literal>, or <literal>Set_Info.xml</literal> file. <application>Publican</application> uses this same content to generate the <literal>Summary</literal> section of the spec file when it packages a document. If the <sgmltag>&lt;subtitle&gt;</sgmltag> is translated, this field contains the translated text.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;update_date&gt;</sgmltag></term>
			<listitem>
				<para>
					The date that the document was most recently installed on the site, in the format YYYY-MM-DD.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;version&gt;</sgmltag></term>
			<listitem>
				<para>
					The version of the product that the document describes (<emphasis>not</emphasis> the version of the document itself), generated from the <sgmltag>&lt;productnumber&gt;</sgmltag> tag in the <literal>Book_Info.xml</literal>, <literal>Article_Info.xml</literal>, or <literal>Set_Info.xml</literal> file unless overridden by the <parameter>version</parameter> parameter in the <filename>publican.cfg</filename> file.
				</para>
			</listitem>
		</varlistentry>
		<varlistentry>
			<term><sgmltag>&lt;version_label&gt;</sgmltag></term>
			<listitem>
				<para>
					The version of the product as it appears in the site table of contents. This label can be set with the <parameter>web_version_label</parameter> parameter in the document's <filename>publican.cfg</filename> file. 
				</para>
				<para>
					If the version label is set to <literal>UNUSED</literal>, no heading for this version of the product appears in the website tables of contents.
				</para>
			</listitem>
		</varlistentry>
	</variablelist>
	<example>
		<title>Sample records from a <filename>DUMP.xml</filename> file</title>
		<para>
			These two records from a <filename>DUMP.xml</filename> file show the same book, the <citetitle>Red Hat Enterprise Linux 5 Installation Guide</citetitle>, in two different formats and two different languages — an English PDF version and a French multi-page HTML version.
		</para>
<programlisting language="XML"><xi:include href="extras/DUMP.xmlt" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude" /></programlisting>
	</example>
	<section>
		<title>Computing URLs from the dump file</title>
		<para>
			Using the following fields, you can compute the URL of any document on the site:
		</para>
		<itemizedlist>
			<listitem>
				<para>
					<sgmltag>&lt;host&gt;</sgmltag>
				</para>
			</listitem>
			<listitem>
				<para>
					<sgmltag>&lt;name&gt;</sgmltag>
				</para>
			</listitem>
			<listitem>
				<para>
					<sgmltag>&lt;format&gt;</sgmltag>
				</para>
			</listitem>
			<listitem>
				<para>
					<sgmltag>&lt;language&gt;</sgmltag>
				</para>
			</listitem>
			<listitem>
				<para>
					<sgmltag>&lt;product&gt;</sgmltag>
				</para>
			</listitem>
			<listitem>
				<para>
					<sgmltag>&lt;version&gt;</sgmltag>
				</para>
			</listitem>
		</itemizedlist>
		<variablelist>
			<varlistentry>
				<term>muti-page HTML</term>
				<listitem>
					<para>
						<sgmltag>&lt;host&gt;</sgmltag>/<sgmltag>&lt;language&gt;</sgmltag>/<sgmltag>&lt;product&gt;</sgmltag>/<sgmltag>&lt;version&gt;</sgmltag>/<sgmltag>&lt;format&gt;</sgmltag>/<sgmltag>&lt;name&gt;</sgmltag>/<filename>index.html</filename>
						
					</para>
					<para>
						For example, <filename>http://docs.fedoraproject.org/en-US/Fedora/14/html/Accessibility_Guide/index.html</filename>
					</para>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term>single-page HTML</term>
				<listitem>
					<para>
						<sgmltag>&lt;host&gt;</sgmltag>/<sgmltag>&lt;language&gt;</sgmltag>/<sgmltag>&lt;product&gt;</sgmltag>/<sgmltag>&lt;version&gt;</sgmltag>/<sgmltag>&lt;format&gt;</sgmltag>/<sgmltag>&lt;name&gt;</sgmltag>/<filename>index.html</filename>
						
					</para>
					<para>
						For example, <filename>http://docs.fedoraproject.org/en-US/Fedora/14/html-single/Accessibility_Guide/index.html</filename>
					</para>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term>PDF</term>
				<listitem>
					<para>
						<sgmltag>&lt;host&gt;</sgmltag>/<sgmltag>&lt;language&gt;</sgmltag>/<sgmltag>&lt;product&gt;</sgmltag>/<sgmltag>&lt;version&gt;</sgmltag>/<sgmltag>&lt;format&gt;</sgmltag>/<sgmltag>&lt;name&gt;</sgmltag>/<sgmltag>&lt;product&gt;</sgmltag>-<sgmltag>&lt;version&gt;</sgmltag>-<sgmltag>&lt;name&gt;</sgmltag>-<sgmltag>&lt;language&gt;</sgmltag>.<filename>pdf</filename>
						
					</para>
					<para>
						For example, <filename>http://docs.fedoraproject.org/en-US/Fedora/14/pdf/Accessibility_Guide/Fedora-14-Accessibility_Guide-en-US.pdf</filename>
					</para>
				</listitem>
			</varlistentry>
			<varlistentry>
				<term>EPUB</term>
				<listitem>
					<para>
						<sgmltag>&lt;host&gt;</sgmltag>/<sgmltag>&lt;language&gt;</sgmltag>/<sgmltag>&lt;product&gt;</sgmltag>/<sgmltag>&lt;version&gt;</sgmltag>/<sgmltag>&lt;format&gt;</sgmltag>/<sgmltag>&lt;name&gt;</sgmltag>/<sgmltag>&lt;product&gt;</sgmltag>-<sgmltag>&lt;version&gt;</sgmltag>-<sgmltag>&lt;name&gt;</sgmltag>-<sgmltag>&lt;language&gt;</sgmltag>.<filename>epub</filename>
						
					</para>
					<para>
						For example, <filename>http://docs.fedoraproject.org/en-US/Fedora/14/pdf/Accessibility_Guide/Fedora-14-Accessibility_Guide-en-US.epub</filename>
					</para>
				</listitem>
			</varlistentry>
		</variablelist>
		<para>
			Note that the <sgmltag>&lt;product_label&gt;</sgmltag>, <sgmltag>&lt;version_label&gt;</sgmltag>, and <sgmltag>&lt;name_label&gt;</sgmltag> fields have no significance for URLs, even when these fields are suppressed in tables of contents by the <literal>UNUSED</literal> setting.
		</para>
	</section>
</appendix>