W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2011

p:exec -- can it apply to only selected parts of input using a loop?

From: Alex Muir <alex.g.muir@gmail.com>
Date: Tue, 1 Feb 2011 12:39:36 +0000
Message-ID: <AANLkTin1JQvapNJ8dLxGaxa3OzvDCY7LbpPXjir=KSRp@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
I know that p:exec can be applied to a whole document within the pipeline
however I'm unaware if it can be applied to one part of a document.

Given an input that had multiple html documents and text documents
<DOC>
<TEXT id="1">
   ...
</TEXT>
<HTML id="2">
   ...
</HTML>
<TEXT id="3">
   ...
</TEXT>
<HTML id="4">
   ...
</HTML>
</DOC>

Is it possible to use say within a loop apply a p:exec to only the HTML
parts say with "w3m" within the p:exec resulting with a document that has
the HTML parts converted into TEXT

<DOC>
<TEXT id="1">
   ...
</TEXT>
<TEXT id="2">
   ...
</TEXT>
<TEXT id="3">
   ...
</TEXT>
<TEXTid="4">
   ...
</TEXT>
 </DOC>

Regards

-- 
Alex
-----
Currently:
Freelance Software Engineer 6+ yrs exp

Previously:
https://sites.google.com/a/utg.edu.gm/alex/


A Bafila, is two rivers flowing together as one:
http://www.facebook.com/pages/Bafila/125611807494851
Received on Tuesday, 1 February 2011 12:40:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 1 February 2011 12:40:10 GMT