Changes

Jump to navigation Jump to search
129 bytes removed ,  16:15, 26 May 2012
no edit summary
=Conventions=
All functions in this module are assigned to the <code>{{Code|http://basex.org/modules/repo</code> }} namespace, which is statically bound to the <code>{{Code|repo</code> }} prefix.<br/>All errors are assigned to the <code>{{Code|http://basex.org/errors</code> }} namespace, which is statically bound to the <code>{{Code|bxerr</code> }} prefix.
=Functions=
|-
| width='90' | '''Signatures'''
|<code><b>{{Func|repo:install</b>(|$path as xs:string) as |empty-sequence()</code>}}<br />
|-
| '''Summary'''
|Installs a package, or (since {{Version|7.2.1}}), replaces an existing package. The parameter <code>{{Code|$path</code> }} indicates the path to the package.<br />
|-
| '''Errors'''
|<b>[[{{Error|BXRE0001|XQuery Errors#Packaging Errors|BXRE0001]]</b> is raised if }} the package does not exist.<br /><b>[[{{Error|BXRE0002|XQuery Errors#Packaging Errors|BXRE0002]]</b> is raised if }} a package uses an invalid namespace URI.<br /><b>[[{{Error|BXRE0003|XQuery Errors#Packaging Errors|BXRE0003]]</b> is raised if }} the package to be installed requires a package which is still not installed.<br /><b>[[{{Error|BXRE0004|XQuery Errors#Packaging Errors|BXRE0004]]</b> is raised if }} the package descriptor is invalid.<br /><b>[[{{Error|BXRE0005|XQuery Errors#Packaging Errors|BXRE0005]]</b> is raised if }} the module contained in the package to be installed is already installed as part of another package.<br /><b>[[{{Error|BXRE0006|XQuery Errors#Packaging Errors|BXRE0006]]</b> is raised if }} the package cannot be parsed.<br /><b>[[{{Error|BXRE0009|XQuery Errors#Packaging Errors|BXRE0009]]</b> is raised if }} the package version is not supported.<br /><b>[[{{Error|BXRE0010|XQuery Errors#Packaging Errors|BXRE0010]]</b> is raised if }} the package contains an invalid JAR descriptor.<br /><b>[[{{Error|BXRE0011|XQuery Errors#Packaging Errors|BXRE0011]]</b> is raised if }} the package contains a JAR descriptor but it cannot be read.<br />
|}
|-
| width='90' | '''Signatures'''
|<code><b>{{Func|repo:delete</b>(|$pkg as xs:string) as |empty-sequence()</code>}}<br />
|-
| '''Summary'''
|Deletes a package. The parameter <code>{{Code|$pkg</code> }} indicates either the package name as specified in the package descriptor or (since {{Version|7.2.1}}) the name, suffixed with a hyphen and the package version.<br />
|-
| '''Errors'''
|<b>[[{{Error|BXRE0007|XQuery Errors#Packaging Errors|BXRE0007]]</b> is raised if }} the package cannot be deleted.<br /><b>[[{{Error|BXRE0008|XQuery Errors#Packaging Errors|BXRE0008]]</b> is raised if }} another package depends on the package to be deleted.<br />
|}
|-
| width='90' | '''Signatures'''
|<code><b>{{Func|repo:list</b>() as ||element(package)*</code>}}<br />
|-
| '''Summary'''
! width="95%"|Description
|-
|<code>{{Code|BXRE0001</code>}}
|The addressed package does not exist.
|-
|<code>{{Code|BXRE0002</code>}}
|A package uses an invalid namespace URI.
|-
|<code>{{Code|BXRE0003</code>}}
|The package to be installed requires a package which is not installed yet.
|-
|<code>{{Code|BXRE0004</code>}}
|The package descriptor is invalid.
|-
|<code>{{Code|BXRE0005</code>}}
|The module contained in the package to be installed is already installed as part of another package.
|-
|<code>{{Code|BXRE0006</code>}}
|The package cannot be parsed.
|-
|<code>{{Code|BXRE0007}}|The package cannot be deleted.|-|{{Code|BXRE0008}}|Another package depends on the package to be deleted|-|{{Code|BXRE0009</code>}}
|The package version is not supported.
|-
|<code>{{Code|BXRE0010</code>}}
|The package contains an invalid JAR descriptor.
|-
|<code>{{Code|BXRE0011</code>}}
|The package contains a JAR descriptor but it cannot be read.
|}
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu