XSLT string replace

replace isn’t available for XSLT 1.0. Codesling has a template for string-replace you can use as a substitute for the function: invoked as: On the other hand, if you literally only need to replace one character with another, you can call translate which has a similar signature. Something like this should work fine: Also, note, in this example, I changed … Read more

XPath OR operator for different nodes

All title nodes with zipcode or book node as parent: Version 1: Version 2: Version 3: (results are sorted based on source data rather than the order of book then zipcode) or – used within true/false – a Boolean operator in xpath | – a Union operator in xpath that appends the query to the … Read more