Applies the %HH escaping convention to a URI, escaping both disallowed characters and reserved characters such as "/" and ":".
encode-for-uri($uri-part as xs:string?) ➔ xs:string
The string to be encoded for inclusion in a URI
Links to W3C specifications
Available in XPath 2.0, XSLT 2.0, XQuery 1.0, and later versions. Available in all Saxon editions.