Create a new directory and a set of subdirectories. Recommended layout:
in/: input files, such as source XML documents
out/: output files, such as final PDF documents (created automatically)
tmp/: temporary files (created automatically)
support/: support files, such as XSLT scripts and LaTeX class files.
Create the project file SConstruct:
specify the input XML file (parameter in_file) and XSLT script (parameter in_xslt) for converting from XML to TeXML,
set other options and paths to files.
The build process is defined using the standard scons build files. To learn how to use scons and its build files, refer to the “SCons User Guide”. The tool cdoc itself is just a wrapper for the tool scons.
Here is a typical SConstruct file for Consodoc:
import Consodoc
Consodoc.default_process(
in_file = 'in/text.xml',
in_xslt = 'support/convert.xsl'
)