XQuery Function Documentation

Search and Browse

http://exist-db.org/apps/public-repo/versions

/db/apps/public-repo/modules/versions.xqm

A library module for finding packages by version number criteria

versions:find-compatible-packages

versions:find-compatible-packages($packages as element()*, $exist-version-semver as xs:string) as element()*

Find all packages compatible with a specific version of eXist (or higher)

Parameters:
$packages* $packages*
$exist-version-semver $exist-version-semver
Returns:
element()*

versions:find-compatible-packages

versions:find-compatible-packages($packages as element()*, $exist-version-semver as xs:string, $version as xs:string?, $semver as xs:string?, $semver-min as xs:string?, $semver-max as xs:string?) as element()*

Find all packages compatible with a version of eXist meeting various version criteria
TODO: find packages with version, semver, or min/max-version attributes to test those conditions - joewiz

Parameters:
$packages* $packages*
$exist-version-semver $exist-version-semver
$version? $version?
$semver? $semver?
$semver-min? $semver-min?
$semver-max? $semver-max?
Returns:
element()*

versions:find-newest-compatible-package

versions:find-newest-compatible-package($packages as element()*, $exist-version-semver as xs:string) as element()?

Find the newest version of packages compatible with a specific version of eXist (or higher)

Parameters:
$packages* $packages*
$exist-version-semver $exist-version-semver
Returns:
element()?

versions:find-newest-compatible-package

versions:find-newest-compatible-package($packages as element()*, $exist-version-semver as xs:string, $version as xs:string?, $semver as xs:string?, $min-version as xs:string?, $max-version as xs:string?) as element()?

Find the newest version of packages compatible with a version of eXist meeting various version criteria

Parameters:
$packages* $packages*
$exist-version-semver $exist-version-semver
$version? $version?
$semver? $semver?
$min-version? $min-version?
$max-version? $max-version?
Returns:
element()?