expath-zip:xml-entry

Extracts an HTML entry from a ZIP file and parses it as a document node.

xml-entry($href as xs:anyURI, $entry as xs:string) ➔ document-node()?

Arguments

 

$href

xs:anyURI

The URI of the ZIP file

 

$entry

xs:string

The required entry in the ZIP file

Result

document-node()?

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 returning an empty sequence if the entry is absent (this differs from Florent Georges' original implementation which raised a dynamic error).

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