expath-zip:binary-entry

Extracts an entry from a ZIP file as a base64Binary value.

binary-entry($href as xs:anyURI, $entry as xs:string) ➔ xs:base64Binary?

Arguments

 

$href

xs:anyURI

The URI of the ZIP file, resolved if necessary against the base URI from the static context

 

$entry

xs:string

The required entry in the ZIP file

Result

xs:base64Binary?

Details

Namespace: http://expath.org/ns/zip

Notes on the Saxon implementation

Implemented since Saxon 9.5; available whether or not support for XPath 3.0 is enabled. Saxon extends the spec by defining that an empty sequence is returned if the entry does not exists.

The EXPath ZIP module and its implementation should not be considered as stable.