Difference between revisions of "Ctx"

From Wiki
Jump to navigation Jump to search
(combine)
 
(29 intermediate revisions by 18 users not shown)
Line 2: Line 2:
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
  
Hi
+
= Processing XML files =
Very nice site.  
+
 
<a href="http://combine.xbuv.inf
+
To process a file <code>xml.xml</code> with style definitions in <code>style.tex</code> you can make a file <code>xml.ctx</code> that says:
o/">combine</a> read <a href=http://combine.xbuv.info/>combine</a>  
+
 
read http://combine.xbuv.info/ combine doc
+
<xmlcode>
Bye
+
<?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>
 +
</xmlcode>
 +
 
 +
If you include a directive into the file <code>xml.xml</code>
 +
 
 +
<xmlcode>
 +
<?context-directive job ctxfile xml.ctx ?>
 +
</xmlcode>
 +
 
 +
you can process your xml file directly with the command
 +
<code>context xml.xml</code>
 +
 
 +
[[Category:XML]]

Latest revision as of 18:13, 21 December 2022

See:

Processing XML files

To process a file xml.xml with style definitions in style.tex you can make a file xml.ctx 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>

If you include a directive into the file xml.xml

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

you can process your xml file directly with the command context xml.xml