fn:iri-to-uri

fn:iri-to-uri(
   $uri-part as xs:string
) as xs:string

Summary

Idempotent function that escapes non-URI characters.

Parameters
uri-part A string representing an unescaped URI.

Example

fn:iri-to-uri("http://example.com/Weather/Los%20Angeles#ocean")
=> "http://example.com/Weather/Los%20Angeles#ocean"
Powered by MarkLogic Server | Terms of Use | Privacy Policy