I have a URI which contains some encoded data:
I have extracted this data into a variable, however I cannot find a way to decode this data so that it can be processed within my XSLT 2.0 stylesheet. I have tried using the EXSLT str:decode-uri function, however it does not appear to be supported by Saxon.
The variable should read: "abc def" and NOT "abc%20def"
Simply replacing all occurrences of %20 with a space is not an option. All codepoints need to be correctly decoded.
Is there a native way of achieving this in XSLT 2.0? If not what alternatives are there?