Database Reference
In-Depth Information
semver-min = string
semver-max = string
/>
The package attribute holds the URI of a package that this package depends
upon (the value of the necessary package's name attribute from its
expath-pkg.xml ).
You can specify the version in one of three ways:
• Define the absolute version of the dependency with the version attribute.
• Define the version of the dependency in semantic version number format
( x . y . z ) using the semver attribute. This allows the packaging system, for
instance, to select the highest version within a release (e.g., semver="1.2"
will satisfy all versions starting with 1.2 , like 1.2.3 , 1.2.16 , etc.).
• Use one or both of the semver-min and semver-max attributes to set the min‐
imum and maximum version number of the dependency using semantic ver‐
sion number format ( x . y . z ).
Using the semantic version number format is highly recommended.
xquery
Use the xquery child element to register one or more library modules with eXist.
These modules then become globally available for your XQuery scripts, and your
code or other packages can use them without knowing where they are stored. In
other words, you don't have to use the at clause within the import module decla‐
ration for this module in your XQuery script's prolog:
<xquery>
<namespace> namespace of xquery module </namespace>
<file> filename without path of xquery module </file>
</xquery>
For a package library module like this, the XQuery module itself must be stored
in the /content subdirectory of the package.
The repo.xml file
The repo.xml file contains additional metadata which eXist uses to determine how to
install and present the package:
<meta xmlns = "http://exist-db.org/xquery/repo" >
description
author+
website
status
license
copyright
type
Search WWH ::




Custom Search