How to create an if-then-else expression (aka ternary operator) in an XPath 1.0 expression?
There are situations where I have to create an XPath expression that performs something like if-then-else logic (similar to a CASE or DECODE expression in SQL or a ternary …