decode
($u as xs:string) as xs:string
Percent-decodes (aka URL decoding) the given string. |
decode
($u as xs:string, $decode-plus as xs:boolean) as xs:string
Percent-decodes (aka URL decoding) the given string. |
decode
($s as xs:string, $decode-plus as xs:boolean, $charset as xs:string) as xs:string external
Percent-decodes (aka URL decoding) the given string. |
parse
($uri as xs:string) as object() external
Parses the URI passed as string. |
serialize
($uri as object()) as xs:string external
Serialize the URI passed as object into a string. |
declare function uri:decode($u as xs:string) as xs:string
declare function uri:decode($u as xs:string, $decode-plus as xs:boolean) as xs:string
declare function uri:decode($s as xs:string, $decode-plus as xs:boolean, $charset as xs:string) as xs:string external
declare function uri:parse($uri as xs:string) as object() external
let my-uri := "http://www.my.project.com/a/b/c?user=john;pass=1234#profile" return uri:parse(my-uri)returns
{ "squeme" : "http", "host" : "www.my.project.com", "path" : "/a/b/c", "query" : "user=john;pass=123", "fragment" : "profile" }
declare function uri:serialize($uri as object()) as xs:string external
$uri:SCHEME as xs:string
$uri:AUTHORITY as xs:string
$uri:USER-INFO as xs:string
$uri:HOST as xs:string
$uri:PORT as xs:string
$uri:PATH as xs:string
$uri:QUERY as xs:string
$uri:FRAGMENT as xs:string
$uri:OPAQUE-PART as xs:string