The escape-uri() function applies the URI escaping conventions defined in RFC 2396 to an input string. For example, «escape-uri("my document.xml", true()) » returns the string «my%20document.xml ».
| Argument | Data Type | Meaning |
|---|---|---|
| value | xs:string | The input string, to which URI escaping is to be applied |
| escape-reserved | xs:boolean | Set to true if characters with a reserved meaning in URIs (for example «/ » and «# ») are to be escaped |
| Result | xs:string | The URI in its escaped form, as a string. |