If you look in lib/ folder the file modules.zip contains the BaseX modules as .xqm stub files with functions marked as external.
The entry for
archive:delete
is shown below. At one point I am sure these *.xqm could be parsed by functions like inspect:module and inspect:xqdoc
Currently they raise errors like [XQST0045] Function '...' is in reserved namespace.
I believe were generated by scraping the wiki :)
However:
* some of these are a little out of date (at least in 9.02)
*
modules.zip
is not present in recent 9.1 betas
This is a shame as I hoped to use to one day use these in some kind of IDE for content assist.
(although I have hoped that for a long time without actually doing it.)
Regards
/Andy
(:~
: Deletes entries from an <code>$archive</code> .
: The format of <code>$entries</code> is the same as for <a href="#archive:create">archive:create</a> .
:
: @error bxerr:ARCH0005 the entries of the given archive cannot be modified.
: @error bxerr:ARCH9999 archive creation failed for some other reason.
:)
declare function archive:delete($archive as xs:base64Binary, $entries as item()*) as xs:base64Binary external;