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)
(14 intermediate revisions by 11 users not shown)
Line 2: Line 2:
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
 
* [[manual:xmanipulate.pdf|Preprocessing source files, Manipulating graphics]]
  
[URL=http://burlington.obsq.info/]burlington[/URL] photo  <a href="http://burlington.obsq.info/">burlington</a> video  http://burlington.obsq.info/ burlington news
+
= Processing XML files =
<a href="http://birmingham.obsq.info/">birmingham</a> doc  http://birmingham.obsq.info/ birmingham video  [URL=http://birmingham.obsq.info/]birmingham[/URL] news
+
 
[URL=http://basket.obsq.info/]basket[/URL] doc  http://basket.obsq.info/ basket read  <a href="http://basket.obsq.info/">basket</a> 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:
http://burnett.obsq.info/ burnett photo  <a href="http://burnett.obsq.info/">burnett</a> video  [URL=http://burnett.obsq.info/]burnett[/URL] video
+
 
[URL=http://bear.obsq.info/]bear[/URL] news  http://bear.obsq.info/ bear photo  <a href="http://bear.obsq.info/">bear</a> photo
+
<xmlcode>
<a href="http://bathing.obsq.info/">bathing</a> video  http://bathing.obsq.info/ bathing online  [URL=http://bathing.obsq.info/]bathing[/URL] doc
+
<?xml version='1.0' standalone='yes'?>
[URL=http://benny.obsq.info/]benny[/URL] photo  <a href="http://benny.obsq.info/">benny</a> video  http://benny.obsq.info/ benny read
+
 
<a href="http://bloombergcom.obsq.info/">bloombergcom</a> online  [URL=http://bloombergcom.obsq.info/]bloombergcom[/URL] video  http://bloombergcom.obsq.info/ bloombergcom doc
+
<ctx:job>
http://british.obsq.info/ british news  <a href="http://british.obsq.info/">british</a> online  [URL=http://british.obsq.info/]british[/URL] news
+
  <ctx:message>whatever you like</ctx:message>
http://bars.obsq.info/ bars video  [URL=http://bars.obsq.info/]bars[/URL] read  <a href="http://bars.obsq.info/">bars</a> photo
+
  <ctx:preprocess/>
  [URL=http://blaine.obsq.info/]blaine[/URL] doc  http://blaine.obsq.info/ blaine read  <a href="http://blaine.obsq.info/">blaine</a> news
+
  <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