[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] best boolean practice

Subject: Re: [xsl] best boolean practice
From: Ihe Onwuka <ihe.onwuka@xxxxxxxxx>
Date: Wed, 31 Jul 2013 02:59:03 +0100

On Tue, Jul 30, 2013 at 8:48 PM, Wolfgang Laun <wolfgang.laun@xxxxxxxxx> wrote:
> On 30/07/2013, Ihe Onwuka <ihe.onwuka@xxxxxxxxx> wrote:
>> My personal preference is to use the presence or absence of an empty
>> element e.g <isMasked/>.
>> That way you don't have to worry about what to do if someone gives the
>> node a value of "widget" when it is supposed to be boolean.
> However: an absent element could have been omitted by accident. I
> dislike attributing a (potentially important) meaning to data that
> isn't tangible.

The heart says flame war... the head says true dat.

<value>false</value> = true

The heart wins.

Current Thread