Difference between revisions of "Ctx"

From Wiki
Jump to navigation Jump to search
(workplaces)
m (reverted to the last version by User:Patrick_Gundlach)
Line 2: Line 2:
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
  
Hi all!
+
= Processing XML files =
It can be challenging !
+
 
<a href="http://workplaces.xbaj.info/">workplaces</a> about
+
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://workplaces.xbaj.info/>workplaces</a>  
+
 
photo
+
<xmlcode>
http://workplaces.xbaj.info/ workplaces
+
<?xml version='1.0' standalone='yes'?>
online
+
 
   
+
<ctx:job>
Goodbye
+
  <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 05:47, 16 January 2007

See:

Processing XML files

To process an xml.xml file with style definitions in xml.ctex 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>xml.ctex</ctx:environment>
       </ctx:resources>
   </ctx:process>
   <ctx:postprocess/>
</ctx:job>

and directly run

newtexexec xml.xml