Re: Use Case 5.17 Pipeline

just reread 5.17 and I need to slightly adjust this pipeline, so
Murray hold off integrating until I resend.

J

On Thu, May 24, 2012 at 3:54 PM, James Fuller <jim@webcomposite.com> wrote:
> something like
>
>    <p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
>        xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">
>        <p:option name="word" required="true"/>
>        <p:input port="source">
>            <p:inline>
>                <dictionary>
>                    <word>monster</word>
>                    <word>mom</word>
>                    <word>molly</word>
>                    <word>monstrous</word>
>                </dictionary>
>            </p:inline>
>        </p:input>
>        <p:output port="result"/>
>        <p:filter>
>            <p:with-option name="select" select="//word[starts-with(.,$word)]"/>
>        </p:filter>
>        <p:wrap-sequence wrapper="result"/>
>    </p:declare-step>
>
> where $word is set externally should fulfill use case 5.17
>
> J

Received on Thursday, 24 May 2012 15:02:32 UTC