- From: James Fuller <jim@webcomposite.com>
- Date: Thu, 24 May 2012 15:54:22 +0200
- 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 UTC