If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Tuesday, June 14, 2011

Mimicking the Switch Expression in XQuery1.0

Here follows a little trick I picked up. Sometimes you want just like in many other programming languages to handle several use cases depending on a switch expression. This is not possible for XQuery1.0 by default but that does not mean you can't mimic it using the typeswitch expression ;-)


No comments:

Post a Comment