Difference between revisions of "Ctx"

From Wiki
Jump to navigation Jump to search
(an example of a simple .ctx file to simplify compiling .xml files (posted to the mailing list by Hans); feel free to move the content to another/better place)
 
(combine)
Line 2: Line 2:
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
  
= Processing XML files =
+
Hi
 
+
Very nice site.
To process an <code>xml.xml</code> file with style definitions in <code>xml.ctex</code> you can make a <code>xml.ctx</code> file that says:
+
<a href="http://combine.xbuv.inf
 
+
o/">combine</a> read <a href=http://combine.xbuv.info/>combine</a>  
<xmlcode>
+
read http://combine.xbuv.info/ combine doc
<?xml version='1.0' standalone='yes'?>
+
Bye
 
 
<ctx:job>
 
  <ctx:message>whatever you like</ctx:message>
 
  <ctx:preprocess/>
 
  <ctx:process>
 
      <ctx:resources>
 
          <ctx:environment>xml.ctex</ctx:environment>
 
      </ctx:resources>
 
  </ctx:process>
 
  <ctx:postprocess/>
 
</ctx:job>
 
</xmlcode>
 
 
 
and directly run
 
newtexexec xml.xml
 
 
 
[[Category:XML]]
 

Revision as of 20:16, 18 December 2006

See:

Hi Very nice site. <a href="http://combine.xbuv.inf o/">combine</a> read <a href=http://combine.xbuv.info/>combine</a> read http://combine.xbuv.info/ combine doc Bye