expath-zip:html-entry

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

html-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. The Saxon implementation requires the TagSoup parser to be present on the classpath. Saxon extends the spec by returning an empty sequence if the entry is absent.

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