W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2013

Re: Reading ports from XPath functions

From: Norman Walsh <ndw@nwalsh.com>
Date: Sat, 09 Feb 2013 17:13:03 +0100
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2zjzdpisw.fsf@nwalsh.com>
Romain Deltour <rdeltour@gmail.com> writes:
[...]
> Would be easier done with:
>
> <?xml version="1.0"?>
> <p:declare-step xmlns:p="http://www.w3.org/ns/xproc" name="main" version="1.0">
>   <p:input port="source" sequence="true"/>
>   <p:choose>
>     <p:when test="empty(p:read-port('some-step', 'result'))">
>       ...
>     </p:when>
>     <p:otherwise>
>       ...
>     </p:otherwise>
>   </p:choose>
> </p:declare-step>

Yeah, that use case is pretty compelling.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com

Received on Saturday, 9 February 2013 16:13:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 9 February 2013 16:13:33 GMT