cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: [patch] esql null column handling
Date Mon, 14 May 2001 17:38:20 GMT
On Mon, 14 May 2001, Matt Sergeant wrote:

> > Here's a patch to allow null-value handling using the esql logicsheet. It introduces
three elements to the esql namespace:
> >  * <esql:when-null>
> >  * <esql:when-null-true>
> >  * <esql:when-null-false>
> > and is used like this:
> >
> > ...
> >  <esql:row-results>
> >  ...
> >   <esql:when-null column="foo">
> >    <esql:when-null-true>
> >     ...
> >    </esql:when-null-true>
> >    <esql:when-null-false>
> >     ...
> >    </esql:when-null-false>
> >   </esql:when-null>
>
> This seems a bit verbose to me... Can't we find a simpler way to handle
> nulls?

i tend to concur. how about simply:

<esql:if-null column="foo"/>

will return an expression that evalues to a boolean in java and a 0 or 1
in perl?

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message