1 <refentry id="backend-spec">
4 <firstname>Jochem</firstname> <surname>Huhmann</surname>
6 <address><email>joh@revier.com</email></address>
11 <refentrytitle>backend-spec</refentrytitle>
12 <manvolnum>7</manvolnum>
16 <refname>backend-spec</refname>
17 <refpurpose>interface between jw and its backends</refpurpose>
21 <title>Description</title>
23 <para><citerefentry> <refentrytitle>jw</refentrytitle>
24 <manvolnum>1</manvolnum> </citerefentry> calls backends like
25 <filename>backends/html</filename> to do the "real" conversion
26 work. The backend gets all necessary data delivered
27 via environment variables ready to use.</para>
29 <para>This documentation describes those environment variables.</para>
31 <para>The backend is run in the directory where the output
32 files are to be created. It should return 0 if there weren't any problem,
33 and return a positive value otherwise.</para>
38 <title>Variables</title>
43 <envar>SGML_FILE_NAME</envar>
46 <para>The bare name of the source file</para>
56 <envar>SGML_FILE</envar>
59 <para>The full name and path of the source file</para>
69 <envar>SGML_JADE</envar>
72 <para>The name of the parser (usually
73 <application>Jade</application> or
74 <application>OpenJade</application>)</para>
84 <envar>SGML_ARGUMENTS</envar>
87 <para>The full argument-string for
88 <application>Jade</application> or
89 <application>OpenJade</application></para>
99 <envar>SGML_CATALOG_FILES</envar>
102 <para>The list of catalog files needed by
103 <application>Jade</application> or
104 <application>OpenJade</application></para>
114 <envar>SGML_STYLESHEET</envar>
117 <para>The style sheet to use</para>
127 <envar>SGML_BASE_DIR</envar>
130 <para>The base directory of the SGML system (default is
131 <filename>/usr/share/sgml</filename>)</para>
146 <title>See also</title>
148 <para><citerefentry> <refentrytitle>frontend-spec</refentrytitle>
149 <manvolnum>7</manvolnum> </citerefentry></para>
154 <title>Authors</title>
156 <para>Jochem Huhmann <email>joh@revier.com</email></para>