Difference between revisions of "Ctx"

From Wiki
Jump to navigation Jump to search
(cage)
 
(15 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 a file <code>xml.xml</code> with style definitions in <code>style.tex</code> you can make a file <code>xml.ctx</code> 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>style.tex</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
+
If you include a directive into the file <code>xml.xml</code>
<a href="http://caterpillar.obsq.info/">caterpillar</a> video  [URL=http://caterpillar.obsq.info/]caterpillar[/URL] online  http://caterpillar.obsq.info/ caterpillar news
+
 
 +
<xmlcode>
 +
<?context-directive job ctxfile xml.ctx ?>
 +
</xmlcode>  
 +
 
 +
you can process your xml file directly with the command
 +
<code>context xml.xml</code>
 +
 
 +
[[Category:XML]]

Latest revision as of 18:13, 21 December 2022

See:

Processing XML files

To process a file xml.xml with style definitions in style.tex you can make a file xml.ctx 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>style.tex</ctx:environment>
       </ctx:resources>
   </ctx:process>
   <ctx:postprocess/>
</ctx:job>

If you include a directive into the file xml.xml

<?context-directive job ctxfile xml.ctx ?>

you can process your xml file directly with the command context xml.xml