Re: Type of documents flowing through ports

On 20 May 2012 22:34, mozer wrote:

> You might had noticed that you can provide a default value when YOU
> DECLARE an input port

  Gosh, I missed that!  Thanks for the pointer.

> It just a syntactic sugar of something that you can do with
> <p:choose>
>    <p:when test="/db:article">
>    ...
>   </p:when>
>   <p:otherwise>
>     <p:error/>
>   </p:otherwise>
> </p:choose>

> Am I correct ?

  Yup.  But I think this is an important one because it is really more
readable and it has a stronger psychological message for users: "use
@as to declare the kinds of documents, in order to catch earlier some
errors, this is a new feature".

  Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/

Received on Sunday, 20 May 2012 21:14:56 UTC