This module provides functions to fetch the content of a resource identified by a URI. For example, it fetches the content of file or http resources.
In order to retrieve such content, the functions use the URI resolution and URL resolver process as documented at URI Resolvers.
content-binary
($uri as xs:string) as xs:base64Binary
Tries to fetch the resource referred to by the given URI and returning it as base64Binary. |
content-binary
($uri as xs:string, $entity-kind as xs:string) as xs:base64Binary external
Tries to fetch the resource referred to by the given URI and returning it as base64Binary. |
content
($uri as xs:string) as xs:string
Tries to fetch the resource referred to by the given URI. |
content
($uri as xs:string, $entity-kind as xs:string) as xs:string
Tries to fetch the resource referred to by the given URI. |
content
($uri as xs:string, $entity-kind as xs:string, $encoding as xs:string) as xs:string external
Tries to fetch the resource referred to by the given URI. |
declare %an:streamable function fetch:content-binary($uri as xs:string) as xs:base64Binary
Tries to fetch the resource referred to by the given URI and returning it as base64Binary.
It queries all URI mappers and resolvers with kind EntityData::SOME_CONTENT.
declare %an:streamable function fetch:content-binary($uri as xs:string, $entity-kind as xs:string) as xs:base64Binary external
Tries to fetch the resource referred to by the given URI and returning it as base64Binary.
It queries all URI mappers and resolvers with kind the specified entity kind.
declare %an:streamable function fetch:content($uri as xs:string) as xs:string
Tries to fetch the resource referred to by the given URI.
It queries all URI mappers and resolvers with kind EntityData::SOME_CONTENT.
The content is assumed to be UTF-8 encoded.
declare %an:streamable function fetch:content($uri as xs:string, $entity-kind as xs:string) as xs:string
Tries to fetch the resource referred to by the given URI.
It queries all URI mappers and resolvers with kind the specified entity kind.
The content is assumed to be UTF-8 encoded.
declare %an:streamable function fetch:content($uri as xs:string, $entity-kind as xs:string, $encoding as xs:string) as xs:string external
Tries to fetch the resource referred to by the given URI.
It queries all URI mappers and resolvers with kind the specified entity kind.