%D \module
%D   [      file=x-e-0202,
%D        version=2003.03.11,
%D          title=\EXAMPLE\ Base Files, 
%D       subtitle=resource libraries,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA / Hans Hagen \& Ton Otten}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for 
%C details. 

%D This is experimental code. Don't change it, don't rely on
%D this interface remaining the same, don't use tricks used
%D here but not described in manuals, so: assume that this
%D file does not exists. 

% equivalent to: texexec --xml --use=res-log filename.rlg 

\usemodule[e-0000]

\loadEXArequest{\inputfilename}
\loadEXAmodes {examodes.tex}

\usemodule[res-log] 

\usetypescript[palatino][\defaultencoding]
\setupbodyfont[palatino,11pt]

\setuplayout
  [width=middle,
   height=middle,
   backspace=1.5cm,
   topspace=1.5cm,
   header=1cm,
   footer=1cm]

\setupheadertexts
  [pagenumber]

\setupfootertexts
  [\mainEXAfilename]

\starttext 

\processXMLfilegrouped{\mainEXAfilename}

\stoptext 
