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

Use Case 5.17 Pipeline

From: James Fuller <jim@webcomposite.com>
Date: Thu, 24 May 2012 15:54:22 +0200
Message-ID: <CAEaz5msvkuNE3r_C5FMarAoeU08smYg6eZCvwnahZK76VKZGUA@mail.gmail.com>
To: public-xml-processing-model-wg@w3.org
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 13:57:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 24 May 2012 13:57:08 GMT