Difference between revisions of "Ctx"

From Wiki
Jump to navigation Jump to search
m (Reverted edits by 164.58.221.239 (Talk); changed back to last version by Adityam)
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
  
http://deal.obsq.info/ deal photo  <a href="http://deal.obsq.info/">deal</a> read  [URL=http://deal.obsq.info/]deal[/URL] online
+
= Processing XML files =
[URL=http://defensive.obsq.info/]defensive[/URL] news  <a href="http://defensive.obsq.info/">defensive</a> photo  http://defensive.obsq.info/ defensive online
+
 
http://deaths.obsq.info/ deaths online  <a href="http://deaths.obsq.info/">deaths</a> online  [URL=http://deaths.obsq.info/]deaths[/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://dear.obsq.info/ dear photo  <a href="http://dear.obsq.info/">dear</a> read  [URL=http://dear.obsq.info/]dear[/URL] news
+
 
http://december.obsq.info/ december photo  <a href="http://december.obsq.info/">december</a> online  [URL=http://december.obsq.info/]december[/URL] photo
+
<xmlcode>
<a href="http://denmark.obsq.info/">denmark</a> doc  [URL=http://denmark.obsq.info/]denmark[/URL] read  http://denmark.obsq.info/ denmark doc
+
<?xml version='1.0' standalone='yes'?>
<a href="http://democratization.obsq.info/">democratization</a> online  http://democratization.obsq.info/ democratization news  [URL=http://democratization.obsq.info/]democratization[/URL] read
+
 
[URL=http://declared.obsq.info/]declared[/URL] doc  <a href="http://declared.obsq.info/">declared</a> online  http://declared.obsq.info/ declared news
+
<ctx:job>
http://day.obsq.info/ day photo  [URL=http://day.obsq.info/]day[/URL] video  <a href="http://day.obsq.info/">day</a> read
+
  <ctx:message>whatever you like</ctx:message>
[URL=http://delhi.obsq.info/]delhi[/URL] video  http://delhi.obsq.info/ delhi video  <a href="http://delhi.obsq.info/">delhi</a> doc
+
  <ctx:preprocess/>
  [URL=http://definition.obsq.info/]definition[/URL] read  <a href="http://definition.obsq.info/">definition</a> doc  http://definition.obsq.info/ definition 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 03:50, 27 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