I am trying to implement an if -else statement in XSLT but my code just doesn\'t parse. Does anyone have any ideas?
The most straight-forward approach is to do a second if-test but with the condition inverted. This technique is shorter, easier on the eyes, and easier to get right than a choose-when-otherwise nested block:
date:
mooooooooooooo
dooooooooooooo
Here's a real-world example of the technique being used in the style-sheet for a government website: http://w1.weather.gov/xml/current_obs/latest_ob.xsl