Use Case 5.17 Pipeline

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 UTC