Re: p:empty

James Garriss <james@garriss.org> writes:

> Can someone plz give a good example of where you'd want to bind a port
> to an empty document?  That is, I'm looking for an example where
> p:empty is really necessary.

Consider a call to p:exec where you don't want stdin to be bound to the
default readable port, you want it to be empty.

  <p:exec>
    <p:input port="source">
      <p:empty/>
   </p:input>
   ...

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | More imagination would indeed be a mere
http://nwalsh.com/            | trifling; only no imagination is
                              | *mere*.--C. S. Peirce

Received on Thursday, 18 September 2008 18:59:02 UTC