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

xsl-list
[Top] [All Lists]

Re: [xsl] best boolean practice

2013-07-30 20:59:25
On Tue, Jul 30, 2013 at 8:48 PM, Wolfgang Laun 
<wolfgang(_dot_)laun(_at_)gmail(_dot_)com> wrote:
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.


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

<value>false</value> = true

The heart wins.

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

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