Here's a fun list of new features in the XPath 4.0, XQuery 4.0, and XSLT 4.0, that are available to play with in Saxon 13. Select an attribute, using a default value if absent @discount otherwise 0 Use a conditional with no else branch if (@discount) { " (reduced!