W3C home > Mailing lists > Public > public-xml-processing-model-wg@w3.org > May 2012

Re: Use Case 5.17 Pipeline

From: James Fuller <jim@webcomposite.com>
Date: Thu, 24 May 2012 17:01:04 +0200
Message-ID: <CAEaz5mu_Ecqs1Fu5Sb=sFqezaA5Ru7wE84AcCBEVcP2C1FPbkg@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 24 May 2012 15:02:33 GMT