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

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 UTC