1 <refentry id="frontend-spec">
4 <firstname>Eric</firstname> <surname>Bischoff</surname>
6 <address><email>ebisch@cybercable.tm.fr</email></address>
11 <refentrytitle>frontend-spec</refentrytitle>
12 <manvolnum>7</manvolnum>
16 <refname>frontend-spec</refname>
17 <refpurpose>interface between jw and its frontends</refpurpose>
21 <title>Description</title>
23 <para><citerefentry> <refentrytitle>jw</refentrytitle>
24 <manvolnum>1</manvolnum> </citerefentry> calls frontends like
25 <filename>frontends/docbook</filename> to get the informations
26 specific to a given input format. The frontend knows which information
27 to return from the first command line parameter. It gets all necessary
28 data via environment variables ready to use.</para>
30 <para>This document describes that command line parameter and those
31 environment variables.</para>
33 <para>The frontend should return 0 if there weren't any problem,
34 and return a positive value otherwise.</para>
39 <title>Variables</title>
47 <para>The command line parameter, specifying which information
48 to return. It can take the following values:
51 <term>centralized-catalog</term>
52 <listitem><para>The frontend must return the DTD-specific
53 centralized catalog name. Centralized catalogs normally
54 reside in <filename>/etc/sgml</filename> and provide the
55 location of all the catalog files useful for handling
56 this input type (the catalog for the DTD, the catalog
57 for the stylesheets, the catalog for the entities,
58 ...)</para></listitem>
61 <term>style-sheet</term>
62 <listitem><para>The frontend must return the filename
63 of the style sheet to be used for this document type and
64 with the chosen backend.</para></listitem>
77 <envar>SGML_CATALOGS_DIR</envar>
80 <para>The directory where the centralized catalogs reside. It is normally
81 <filename>/etc/sgml</filename>.</para>
82 <para>(This variable is valid only while determining
83 the centralized catalog to use.)</para>
93 <envar>SGML_BASE_DIR</envar>
96 <para>The base directory of the SGML system. It is normally
97 <filename>/usr/share/sgml</filename>.</para>
98 <para>(This variable is valid only while determining
99 the style sheet to use.)</para>
109 <envar>SGML_FILE</envar>
112 <para>The name of the file to convert.</para>
113 <para>(This variable is valid only while determining
114 the centralized catalog to use.)</para>
124 <envar>SGML_TYPE</envar>
127 <para>The type of the backend to use, whether it produces output
128 files to be displayed online or to be printed out.
129 It can take the value <constant>html</constant> or
130 <constant>print</constant>.</para>
131 <para>(This variable is valid only while determining
132 the style sheet to use).</para>
142 <envar>SGML_STYLESHEETS</envar>
145 <para>The desired custom stylesheet type, either <constant>none</constant>
146 or <constant>default</constant>.
147 If <constant>none</constant>, the frontend must return the file name of
148 the style sheet provided by the system beneath the docbook-utils.
149 If <constant>default</constant>, the frontend must return the custom
150 stylesheet provided by the docbook-utils.</para>
151 <para>(This variable is valid only while determining
152 the style sheet to use).</para>
160 <envar>SGML_XML</envar>
163 <para>The metalanguage of the file to convert, either <constant>sgml</constant>
164 or <constant>xml</constant>.</para>
165 <para>(This variable is valid only while determining
166 the centralized catalog to use).</para>
181 <title>See also</title>
184 <refentrytitle>backend-spec</refentrytitle>
185 <manvolnum>7</manvolnum>
186 </citerefentry></para>
190 <title>Authors</title>
192 <para>Jochem Huhmann <email>joh@revier.com</email></para>