WTF of the day...

Oct 23, 2009 15:52

While you can use booleans all day long inside a template in XSLT 1.0, you can *NOT* pass them as values across template application or call boundaries. They invisibly become strings, leading to interesting things such as:

flag?
not(flag)?

flag is true...

flag is false...

When check_something returns true, as above, then you get the ( Read more... )

Leave a comment

Comments 1

(The comment has been removed)

kickaha October 24 2009, 15:58:15 UTC
Keen. I've just gotten into JavaScript too, and oy. Globals? Really? Who came up with this, an undergrad? (Oh right, nevermind...)

Reply


Leave a comment

Up