source: pst/xml/xmlto.xml@ c6c8877

trunk
Last change on this file since c6c8877 was a3336db, checked in by Xi Ruoyao <xry111@…>, 8 weeks ago

xmlto: Adapt for GCC 14

  • Property mode set to 100644
File size: 5.9 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY xmlto-download-http "https://releases.pagure.org/xmlto/xmlto-&xmlto-version;.tar.bz2">
8 <!ENTITY xmlto-download-ftp " ">
9 <!ENTITY xmlto-md5sum "93bab48d446c826399d130d959fe676f">
10 <!ENTITY xmlto-size "128 KB">
11 <!ENTITY xmlto-buildsize "1.5 MB (with tests)">
12 <!ENTITY xmlto-time "less than 0.1 SBU (with tests)">
13]>
14
15<sect1 id="xmlto" xreflabel="xmlto-&xmlto-version;">
16 <?dbhtml filename="xmlto.html"?>
17
18
19 <title>xmlto-&xmlto-version;</title>
20
21 <indexterm zone="xmlto">
22 <primary sortas="a-xmlto">xmlto</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to xmlto</title>
27
28 <para>
29 The <application>xmlto</application> package is a front-end to a XSL
30 toolchain. It chooses an appropriate stylesheet for the conversion you
31 want and applies it using an external XSLT processor. It also performs
32 any necessary post-processing.
33 </para>
34
35 &lfs121_checked;
36
37 <bridgehead renderas="sect3">Package Information</bridgehead>
38 <itemizedlist spacing="compact">
39 <listitem>
40 <para>
41 Download (HTTP): <ulink url="&xmlto-download-http;"/>
42 </para>
43 </listitem>
44 <listitem>
45 <para>
46 Download (FTP): <ulink url="&xmlto-download-ftp;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download MD5 sum: &xmlto-md5sum;
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download size: &xmlto-size;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Estimated disk space required: &xmlto-buildsize;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated build time: &xmlto-time;
67 </para>
68 </listitem>
69 </itemizedlist>
70
71 <bridgehead renderas="sect3">xmlto Dependencies</bridgehead>
72
73 <bridgehead renderas="sect4">Required</bridgehead>
74 <para role="required">
75 <xref linkend="DocBook"/>,
76 <xref linkend="docbook-xsl"/>, and
77 <xref linkend="libxslt"/>
78 </para>
79
80 <bridgehead renderas="sect4">Optional (for DVI, PDF, and postscript
81 backend post-processing)</bridgehead>
82 <para role="optional">
83 <xref role="runtime" linkend="fop"/>,
84<!-- <ulink url="https://dblatex.sourceforge.net/">dblatex</ulink>, and -->
85 <ulink url="https://sourceforge.net/projects/dblatex/files/dblatex/">dblatex</ulink>, and
86 <ulink url="https://www.garshol.priv.no/download/xmltools/prod/PassiveTeX.html">
87 PassiveTeX</ulink>
88 </para>
89
90 <bridgehead renderas="sect4">Optional (for text backend
91 post-processing)</bridgehead>
92 <para role="optional">
93 One of
94 <xref role="runtime" linkend="Links"/>,
95 <xref role="runtime" linkend="lynx"/>,
96 <ulink url="&w3m-url;">W3m</ulink>, or
97 <ulink url="&elinks-url;">ELinks</ulink>
98 </para>
99
100 <para condition="html" role="usernotes">Editor Notes:
101 <ulink url="&blfs-wiki;/xmlto"/></para>
102
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of xmlto</title>
107
108 <!-- https://pagure.io/xmlto/c/8e34f087bf41
109 https://pagure.io/xmlto/c/1375e2df7553 -->
110 <para>
111 Fix variable and function declarations in pre-C99 style which is
112 rejected by GCC-14.1 or later:
113 </para>
114
115 <screen><userinput>sed -ri 's/ifsense;|main/int &amp;/' xmlif/xmlif.l</userinput></screen>
116
117 <para>
118 Install <application>xmlto</application> by running the following
119 commands:
120 </para>
121
122<screen><userinput>LINKS="/usr/bin/links" \
123./configure --prefix=/usr &amp;&amp;
124
125make</userinput></screen>
126
127 <para>
128 To test the results, issue: <command>make check</command>.
129 </para>
130
131 <para>
132 Now, as the <systemitem class="username">root</systemitem> user:
133 </para>
134
135<screen role="root"><userinput>make install</userinput></screen>
136
137 </sect2>
138
139 <sect2 role="commands">
140 <title>Command Explanations</title>
141
142 <para>
143 <envar>LINKS="/usr/bin/links"</envar>: This environment variable fixes a
144 bug causing <command>xmlto</command> to think that
145 <command>links</command> command is the same as
146 <command>elinks</command>. Setting this variable does not cause problems
147 if <xref linkend="links"/> is not installed, unless
148 you have <ulink url="http://elinks.or.cz/">ELinks</ulink> installed, and
149 wish to use it for text backend post-processing, in which case,
150 remove it.
151 </para>
152
153 </sect2>
154
155 <sect2 role="content">
156 <title>Contents</title>
157
158 <segmentedlist>
159 <segtitle>Installed Programs</segtitle>
160 <segtitle>Installed Libraries</segtitle>
161 <segtitle>Installed Directory</segtitle>
162
163 <seglistitem>
164 <seg>xmlif and xmlto</seg>
165 <seg>None</seg>
166 <seg>/usr/share/xmlto</seg>
167 </seglistitem>
168 </segmentedlist>
169
170 <variablelist>
171 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
172 <?dbfo list-presentation="list"?>
173 <?dbhtml list-presentation="table"?>
174
175 <varlistentry id="xmlif">
176 <term><command>xmlif</command></term>
177 <listitem>
178 <para>
179 is a conditional processing instructions for XML
180 </para>
181 <indexterm zone="xmlto xmlif">
182 <primary sortas="b-xmlif">xmlif</primary>
183 </indexterm>
184 </listitem>
185 </varlistentry>
186
187 <varlistentry id="xmlto-prog">
188 <term><command>xmlto</command></term>
189 <listitem>
190 <para>
191 applies an XSL stylesheet to an XML document
192 </para>
193 <indexterm zone="xmlto xmlto-prog">
194 <primary sortas="b-xmlto">xmlto</primary>
195 </indexterm>
196 </listitem>
197 </varlistentry>
198
199 </variablelist>
200
201 </sect2>
202
203</sect1>
Note: See TracBrowser for help on using the repository browser.