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

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

From: Jostein Austvik Jacobsen <josteinaj@gmail.com>
Date: Tue, 1 Feb 2011 14:17:50 +0100
Message-ID: <AANLkTi=9L0b48VdZLgX=EiV0dNc3VQN8zQ-kkyx91AX7@mail.gmail.com>
To: Alex Muir <alex.g.muir@gmail.com>
Cc: XProc Dev <xproc-dev@w3.org>
Initially I would look at p:viewport:
http://www.w3.org/TR/xproc/#p.viewport -- "It
is a compound step that processes a single document, applying its
subpipeline to one or more subtrees of the document."

Regards
Jostein

2011/2/1 Alex Muir <alex.g.muir@gmail.com>

> 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 13:18:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 1 February 2011 13:18:43 GMT