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

Re: [xsl] best boolean practice

Subject: Re: [xsl] best boolean practice
From: Wolfgang Laun <wolfgang.laun@xxxxxxxxx>
Date: Tue, 30 Jul 2013 21:48:35 +0200

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.


Current Thread