I am using the XML Viewer Web Part to display some links. I need to encode the URI component because a value of a parameter may contain and ampersand. The way to do this in XSLT 2.0 is by using fn:encode-for-uri(). However, as soon as I add this to the XSL, the web part returns the error:
Failed to apply XSLT to the content.