Search SSWUG.ORG:

DATABASES

How to create an if-then-else expression (aka ternary operator) in an XPath 1.0 expression? This is an off-site link.  Please review our Terms of Service for additional information.




(Lucas Jellema) 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 operator in Java or JavaScript). Unfortunately, XPath 1.0 – a version still widely found – does not support the XPath 2.0 if-then-else logic.

Read this article...







comments powered by Disqus