Re: Reading ports from XPath functions

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 UTC