Difference between revisions of "Ctx"

From Wiki
Jump to navigation Jump to search
m (changed back to last version by Patrick Gundlach)
Line 2: Line 2:
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
  
http://confidential.obsq.info/ confidential photo  <a href="http://confidential.obsq.info/">confidential</a> read  [URL=http://confidential.obsq.info/]confidential[/URL] news
+
= Processing XML files =
http://congressional.obsq.info/ congressional photo  <a href="http://congressional.obsq.info/">congressional</a> video  [URL=http://congressional.obsq.info/]congressional[/URL] photo
+
 
<a href="http://commentator.obsq.info/">commentator</a> doc  http://commentator.obsq.info/ commentator photo  [URL=http://commentator.obsq.info/]commentator[/URL] news
+
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://conroe.obsq.info/">conroe</a> video  [URL=http://conroe.obsq.info/]conroe[/URL] news  http://conroe.obsq.info/ conroe online
+
 
<a href="http://concil.obsq.info/">concil</a> photo  http://concil.obsq.info/ concil doc  [URL=http://concil.obsq.info/]concil[/URL] doc
+
<xmlcode>
<a href="http://commercialization.obsq.info/">commercialization</a> video  [URL=http://commercialization.obsq.info/]commercialization[/URL] read  http://commercialization.obsq.info/ commercialization news
+
<?xml version='1.0' standalone='yes'?>
[URL=http://connecticut.obsq.info/]connecticut[/URL] news  <a href="http://connecticut.obsq.info/">connecticut</a> online  http://connecticut.obsq.info/ connecticut doc
+
 
<a href="http://comparative.obsq.info/">comparative</a> online  [URL=http://comparative.obsq.info/]comparative[/URL] read  http://comparative.obsq.info/ comparative read
+
<ctx:job>
http://composite.obsq.info/ composite read  [URL=http://composite.obsq.info/]composite[/URL] news  <a href="http://composite.obsq.info/">composite</a> online
+
  <ctx:message>whatever you like</ctx:message>
[URL=http://compatability.obsq.info/]compatability[/URL] read  http://compatability.obsq.info/ compatability read  <a href="http://compatability.obsq.info/">compatability</a> video
+
  <ctx:preprocess/>
  [URL=http://conferences.obsq.info/]conferences[/URL] photo  http://conferences.obsq.info/ conferences doc  <a href="http://conferences.obsq.info/">conferences</a> online
+
  <ctx:process>
 +
      <ctx:resources>
 +
          <ctx:environment>xml.ctex</ctx:environment>
 +
      </ctx:resources>
 +
  </ctx:process>
 +
  <ctx:postprocess/>
 +
</ctx:job>
 +
</xmlcode>
 +
 
 +
and directly run
 +
  texexec xml.xml
 +
 
 +
[[Category:XML]]

Revision as of 06:51, 26 February 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

texexec xml.xml