<?xml version="1.0" encoding="iso-8859-1" ?>
<?xml-stylesheet type="text/xsl" href="README.xsl" ?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
          "/usr/local/lib/sgml/dtd/docbookx-4.1.2/docbookx.dtd" []>
<article>
<articleinfo>
<title>DocBook In ConTeXt, ConTeXt XML mapping for DocBook
documents</title>
<authorgroup>
<author>
<firstname>Simon</firstname>
<surname>Pepping</surname>
</author>
<author>
<firstname>Michael</firstname>
<surname>Wiedmann</surname>
</author>
</authorgroup>
</articleinfo>
<section>
<title>What is DocbookInContext?</title>
<para>DocbookInContext is a mapping of Docbook XML files to the ConTeXt
macro package for TeX. It is built upon the XML interface of
context. It allows one to produce a typeset version of a Docbook XML
file, in <literal>dvi</literal> or <literal>pdf</literal> format.</para>
</section>
<section>
<title>Installation</title>
<para>Change directory to the top directory of one of the
<literal>texmf</literal> trees of your TeX installation,
e.g. <filename>/usr/share/texmf</filename>, and
<command>untar</command> the distribution file
<filename>DocbookInContext.tar.gz</filename>. Then run the command
<command>mktexlsr</command> for that tree, e.g. <command>mktexlsr
/usr/share/texmf</command>. Test the result by issuing the command
<command>kpsewhich xtag-docbook.tex</command>. The reply should be the
path of one of the files just installed, e.g.
/usr/share/texmf/tex/context/DocbookInContext/xtag-docbook.tex<filename
moreinfo="none"></filename>.</para>
</section>
<section>
<title>Usage</title>
<para>Run context on a Docbook XML file using
<filename>xtag-docbook.tex</filename> as the map file. Context offers
several possibilities to do this, see the context XML manual
<filename>example.pdf</filename>.</para> <para>One option is to
construct a TeX file that inputs the mapping file
<filename>xtag-docbook.tex</filename>, and in the text block inputs
the XML file with the command
<command>\processXMLfilegrouped</command>. For example:
<programlisting>
\input xtag-docbook
\setupindenting[medium]
\setupheadertexts[section][pagenumber]
\setupheader[leftwidth=.7\hsize,style=slanted]
\setuppagenumbering[location=]
\setupitemize[each][packed][before=,after=,indentnext=no]

\starttext
\processXMLfilegrouped{\jobname.xml}
\stoptext
</programlisting>
</para>
<para>Test this on the <filename>README</filename> file. It comes
in an XML version with a corresponding TeX file
<filename>README.tex</filename>. The command <command
moreinfo="none">texexec --pdf README</command> produces the file
<filename moreinfo="none">README.pdf</filename>, which you may now use
to read the following sections.</para>
</section>
<section>
<title>Compatibility</title>
<para>DocbookInContext is compatible with ConTeXt version
2002.6.25. Because it modifies several context commands, compatibility
may be broken by new releases of context.</para>
</section>
<section>
<title>Integration with ConTeXt</title>
<para>Discussions with the ConTeXt Task Force about integration of this
module with the context distribution are ongoing. They may result in
changes in the names of the module and of the directory in which it is
installed.</para>
</section>
<section>
<title>Authors and contributors</title>
<para>The DocbookInContext project was started by Simon Pepping in
January 2002 after a suggestion by Hans Hagen. Soon Michael Wiedmann
joined him. Simon did and does most of the ConTeXt programming. Michael
contributed the localization files and part of the mappings. His
knowledge of Docbook theory, practice and community and his test files
feed the project with practical goals.</para>
</section>
<section>
<title>Copyright and license</title>
<para>The copyright of this module rests with the authors and
contributors. The module is released under the GNU General Public
License Version 2, June 1991. See the file COPYRIGHT for details. If
the module or part of it is received as part of a an official ConTeXt
distribution, the context license is applicable. See the file
<filename>mreadme.pdf</filename> of the context distribution for
details.</para>
</section>
</article>

<!-- Local Variables: -->
<!-- mode:docbook -->
<!-- End: -->

<!-- $Id: README.xml,v 1.1 2002/07/17 00:00:00 simon Exp $ -->
