Ctx

From Wiki
Revision as of 18:12, 21 December 2022 by Thomas (talk | contribs)
Jump to navigation Jump to search

See:

Processing XML files

To process a file xml.xml with style definitions in style.tex you can make a xml.ctx file that says:

<?xml version='1.0' standalone='yes'?>

<ctx:job>
   <ctx:message>whatever you like</ctx:message>
   <ctx:preprocess/>
   <ctx:process>
       <ctx:resources>
           <ctx:environment>style.tex</ctx:environment>
       </ctx:resources>
   </ctx:process>
   <ctx:postprocess/>
</ctx:job>

Include a directive into the file xml.xml:

<?context-directive job ctxfile xml.ctx ?>

After doing this, you can process your xml file directly with the command context xml.xml