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

Re: Reading ports from XPath functions

From: Alex Muir <alex.g.muir@gmail.com>
Date: Sat, 9 Feb 2013 12:37:21 -0500
Message-ID: <CAFtPEJb+1v=18YmqrBOvz-chFUKE8i_TucCECxEewLscYFog7Q@mail.gmail.com>
To: Norman Walsh <ndw@nwalsh.com>
Cc: XProc Dev <xproc-dev@w3.org>
Looks like a good simplification. Would that do away with pipes completely
then?

On Sat, Feb 9, 2013 at 11:13 AM, Norman Walsh <ndw@nwalsh.com> wrote:

> 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
>



-- 
-

Alex G. Muir
Software Engineering Consultant
Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
Love African Kora Music? Take a moment to listen to Gambia's - Amadu
Diabarte & Jali Bakary Konteh www.bafila.bandcamp.com Your support keeps
Africa's griot tradition alive... Cheers!
Received on Saturday, 9 February 2013 17:37:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 9 February 2013 17:37:50 GMT