Difference between revisions of "Ctx"

From Wiki
Jump to navigation Jump to search
m (Reverted edits by 160.36.99.223 (Talk); 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://clouds.obsq.info/ clouds read  <a href="http://clouds.obsq.info/">clouds</a> photo  [URL=http://clouds.obsq.info/]clouds[/URL] online
+
= Processing XML files =
http://cloning.obsq.info/ cloning online  <a href="http://cloning.obsq.info/">cloning</a> news  [URL=http://cloning.obsq.info/]cloning[/URL] online
+
 
http://coheed.obsq.info/ coheed doc  <a href="http://coheed.obsq.info/">coheed</a> doc  [URL=http://coheed.obsq.info/]coheed[/URL] read
+
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:
http://coming.obsq.info/ coming read  <a href="http://coming.obsq.info/">coming</a> news  [URL=http://coming.obsq.info/]coming[/URL] online
+
 
<a href="http://cody.obsq.info/">cody</a> read  [URL=http://cody.obsq.info/]cody[/URL] read  http://cody.obsq.info/ cody photo
+
<xmlcode>
http://cobra.obsq.info/ cobra doc  <a href="http://cobra.obsq.info/">cobra</a> online  [URL=http://cobra.obsq.info/]cobra[/URL] video
+
<?xml version='1.0' standalone='yes'?>
[URL=http://chillicothe.obsq.info/]chillicothe[/URL] video  http://chillicothe.obsq.info/ chillicothe photo  <a href="http://chillicothe.obsq.info/">chillicothe</a> video
+
 
<a href="http://collectible.obsq.info/">collectible</a> read  http://collectible.obsq.info/ collectible photo  [URL=http://collectible.obsq.info/]collectible[/URL] online
+
<ctx:job>
[URL=http://cingular.obsq.info/]cingular[/URL] online  <a href="http://cingular.obsq.info/">cingular</a> photo  http://cingular.obsq.info/ cingular video
+
  <ctx:message>whatever you like</ctx:message>
[URL=http://coloring.obsq.info/]coloring[/URL] photo  http://coloring.obsq.info/ coloring read  <a href="http://coloring.obsq.info/">coloring</a> doc
+
  <ctx:preprocess/>
  [URL=http://children.obsq.info/]children[/URL] online  <a href="http://children.obsq.info/">children</a> video  http://children.obsq.info/ children video
+
  <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 21:23, 25 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