Difference between revisions of "Ctx"

From Wiki
Jump to navigation Jump to search
(cage)
m (Reverted edits by 164.58.221.239 (Talk); changed back to last version by Adityam)
(13 intermediate revisions by 10 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 <a href="http://campaign.obsq.info/">campaign</a> doc  [URL=http://campaign.obsq.info/]campaign[/URL] news  http://campaign.obsq.info/ campaign doc
+
  <ctx:process>
[URL=http://cage.obsq.info/]cage[/URL] photo  http://cage.obsq.info/ cage news  <a href="http://cage.obsq.info/">cage</a> video
+
      <ctx:resources>
http://cayman.obsq.info/ cayman photo  <a href="http://cayman.obsq.info/">cayman</a> online  [URL=http://cayman.obsq.info/]cayman[/URL] video
+
          <ctx:environment>xml.ctex</ctx:environment>
[URL=http://candles.obsq.info/]candles[/URL] video  http://candles.obsq.info/ candles photo  <a href="http://candles.obsq.info/">candles</a> online
+
      </ctx:resources>
[URL=http://candy.obsq.info/]candy[/URL] photo  http://candy.obsq.info/ candy online  <a href="http://candy.obsq.info/">candy</a> news
+
  </ctx:process>
[URL=http://cctv.obsq.info/]cctv[/URL] news  http://cctv.obsq.info/ cctv news  <a href="http://cctv.obsq.info/">cctv</a> online
+
  <ctx:postprocess/>
<a href="http://capitals.obsq.info/">capitals</a> video  http://capitals.obsq.info/ capitals photo  [URL=http://capitals.obsq.info/]capitals[/URL] doc
+
</ctx:job>
[URL=http://cartoon.obsq.info/]cartoon[/URL] doc  <a href="http://cartoon.obsq.info/">cartoon</a> video http://cartoon.obsq.info/ cartoon online
+
</xmlcode>
http://casualties.obsq.info/ casualties read  [URL=http://casualties.obsq.info/]casualties[/URL] photo  <a href="http://casualties.obsq.info/">casualties</a> online
+
 
<a href="http://caught.obsq.info/">caught</a> photo  http://caught.obsq.info/ caught video  [URL=http://caught.obsq.info/]caught[/URL] video
+
and directly run
<a href="http://caterpillar.obsq.info/">caterpillar</a> video  [URL=http://caterpillar.obsq.info/]caterpillar[/URL] online  http://caterpillar.obsq.info/ caterpillar news
+
  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