this is a german Web-Mirror of MHONARC.ORG powered by Domainunion AG

[Top] [All Lists]

Re: [xsl] best boolean practice

2013-07-30 14:48:44
On 30/07/2013, Ihe Onwuka <ihe(_dot_)onwuka(_at_)gmail(_dot_)com> 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.


XSL-List info and archive:
To unsubscribe, go to:
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>

<Prev in Thread] Current Thread [Next in Thread>