diff --git a/schema/collection.xconf.xsd b/schema/collection.xconf.xsd index d820a5dbe93..384f4029c32 100644 --- a/schema/collection.xconf.xsd +++ b/schema/collection.xconf.xsd @@ -1,9 +1,12 @@ + xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" vc:minVersion="1.1" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:cc="http://exist-db.org/collection-config/1.0" + xmlns:dcterms="http://purl.org/dc/terms/" + elementFormDefault="qualified" + targetNamespace="http://exist-db.org/collection-config/1.0" + version="1.0.0"> Schema for eXist-db Collection Configuration files /db/system/config/db/**/collection.xconf @@ -14,30 +17,30 @@ - + At least one `index`, `triggers`, or `validation` element must be present, and each may only appear once. - - - + + + - + Index Configuration - - - - - + + + + + @@ -46,217 +49,218 @@ Either @qname or @path must be specified. Not both! - - - + + + - + - + - + - - - - - - - + + + + + + + + - - + + - - - - - + + + + + - - - - - - + + + + + + - + - - - - + + + + - + - + - + - - + + - + - + - + - + - - - + + + - - - - - - - - + + + + + + + + - + Either @qname or @match must be specified. Not both! - - - - - - - + + + + + + + - - - + + + - - - - - - + + + + + + - - - + + + - - + + - + - + - + - + - + Trigger Configuration - + - + - + - + This is deprecated, triggers should now code functions for each event - + - + - - + + - + Per collection validation-switch configuration - + - + - + - + - + diff --git a/schema/conf.xsd b/schema/conf.xsd index 75c57d0647d..f41c6f8d4c8 100644 --- a/schema/conf.xsd +++ b/schema/conf.xsd @@ -6,7 +6,9 @@ TODO: Remove optional attributes in favour of well defined/named parent elements --> - + diff --git a/schema/controller-config.xsd b/schema/controller-config.xsd index fa1b6db0d13..7ed505eee78 100644 --- a/schema/controller-config.xsd +++ b/schema/controller-config.xsd @@ -1,5 +1,10 @@ - + diff --git a/schema/descriptor.xsd b/schema/descriptor.xsd index 2827f206de2..30d9432d5b6 100644 --- a/schema/descriptor.xsd +++ b/schema/descriptor.xsd @@ -4,7 +4,9 @@ Schema for eXist WebApp Descriptor Configuration file descriptor.xml --> - + diff --git a/schema/expath-pkg-extensions/cxan.xsd b/schema/expath-pkg-extensions/cxan.xsd new file mode 100644 index 00000000000..dc2864d613c --- /dev/null +++ b/schema/expath-pkg-extensions/cxan.xsd @@ -0,0 +1,53 @@ + + + + + A schema for the EXPath Packaging CXAN concept. + + Schema for the EXPath Packaging CXAN concept. + 2013-11-03T11:36:19.343+01:00 + Adam Retter + + + + + + + + + + + + + + + + + + + A textual description of the author. + + + + + + + A simple identifier for the author. + + + + + + + + + + + + diff --git a/schema/expath-pkg-extensions/exist.xsd b/schema/expath-pkg-extensions/exist.xsd new file mode 100644 index 00000000000..b72e130e3d3 --- /dev/null +++ b/schema/expath-pkg-extensions/exist.xsd @@ -0,0 +1,42 @@ + + + + + A schema for eXist-db extensions to EXPath Packaging. + + eXist-db extensions to EXPath Packaging + 2013-11-03T11:36:19.343+01:00 + Adam Retter + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/schema/expath-pkg-extensions/repo.xsd b/schema/expath-pkg-extensions/repo.xsd new file mode 100644 index 00000000000..14ee73383a7 --- /dev/null +++ b/schema/expath-pkg-extensions/repo.xsd @@ -0,0 +1,146 @@ + + + + + A schema for eXist-db Package Repository extensions to EXPath Packaging. + + eXist-db Package Repository extensions to EXPath Packaging + 2013-11-03T11:36:19.343+01:00 + Adam Retter + + + + + + + + + + + + + + + + + + + + + + + + + A textual description of the package + + + + + + A textual description of the author. + + + + + + + A simple identifier for the author. + + + + + + + + + + A link to an informational website about the package + + + + + + The status of the package + + + + + + Name of the license that the package is released under + + + + + + Indicates whether there is a copyright on the package + + + + + + Indicates whether there is a copyright on the package + + + + + + + + + + + + + A name indicating the final collection name of where the package is installed + + + + + + The path to an XQuery script that may be executed before the package is installed + + + + + + The path to an XQuery script that may be executed after the package is installed + + + + + + Describes permissions that should be applied to a resource from the package when it is installed into the database. + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/schema/expath-pkg.xsd b/schema/expath-pkg.xsd new file mode 100644 index 00000000000..c62f50cc315 --- /dev/null +++ b/schema/expath-pkg.xsd @@ -0,0 +1,230 @@ + + + + + A schema for EXPath Packaging (i.e. expath-pkg.xml) file as per the EXPath Packaging System - Candidate Module 9 May 2012' specification. + + Schema for EXPath Packaging + 2013-11-03T11:36:19.343+01:00 + Adam Retter + + + + + + + + + A simple description of the package for humans. + + + + + A URI to find more information about the package. + + + + + A dependency of this package. + + + + + + + The name of the package. A package is named using an IRI, as defined by [RFC 3987], excepted any IRI using the file: scheme (most frequent choices are http: and urn: scheme URIs). Note that the definition of IRI excludes relative references. + + + + + + + The version of the packaging specification the package conforms to. + + + + + + + + The standard component kinds supported by this specification, and how they contribute to the package descriptor document type. Every component has the same basic information: it associates a public URI to a specific file within the content directory. The file element contains a path, relative to the package content directory. Both elements in a component are of type anyURI. + + + + + + An XSLT file is associated a public import URI. This is the URI to use in an XSLT import instruction (aka xsl:import) to import the XSLT file provided in the package. + + + + + An XQuery library module is referenced by its namespace URI. Thus the xquery element associates a namespace URI to an XQuery file. An importing module just need to use an import statement of the form import module namespace xx = "<namespace-uri>'";. An XQuery main module is associated a public URI. Usually an XQuery package will provide functions through library modules, but in some cases one can want to provide main modules as well. + + + + + An XProc pipeline, like an XSLT stylesheet, is associated a public import URI, aimed to be used in an XProc p:import statement. + + + + + An XML schema can be imported using its target namespace. It is not possible to set several files as several sources for the schema. If the schema is spread over multiple files, there must be one top-level file that includes the other files. + + + + + A RelaxNG schema, like an XSLT stylesheet, is associated a public import URI, aimed to be used in the include element for an RNG schema. + + + + + A RelaxNG schema, like an XSLT stylesheet, is associated a public import URI, aimed to be used in an import directive for an RNC schema. + + + + + A Schematron schema is associated a public URI. + + + + + An NVDL script is associated a public URI. + + + + + A DTD file is associated a public URI. + + + + + A resource file is associated a public URI. This can be any kind of file. It has to be used in accordance to its content. For instance accessing a text file through fn:unparsed-text() is correct, while using fn:doc() is not (it will raise an error because it parses the content as XML). + + + + + + + + + + + The URI of the Namespace of the XQuery Library Module. + + + + + The URI of where the XQuery Main Module should be accessible from. + + + + + + The @namespace and @import-uri attributes are mutually exclusive. + + + + + + + + The URI of the Target Namespace of the XML Schema. + + + + + The import-uri can be used to define a schema location for this schema component. This can be useful for schema without target namespace, or for some specific usages, like when using xs:redefine. + + + + + + The @namespace and @import-uri attributes are mutually exclusive. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Contains a path, relative to the package content directory. + + + + + + Must specify a 'package' or 'processor', and one of 'versions', 'semver', or ('semver-min' and/or 'semver-max'). + + + + + + + The exact set of acceptable versions for the secondary package, separated by spaces. + + + + + + + + + The @package and @processor attributes are mutually exclusive. + + + + + + The @versions, @semver, and (@semver-min and/or @semver-max) attributes are mutually exclusive. + + + + + + + + + + + A SemVer 2.0.0 version number. + + + + + + + A subpart (i.e. only the major version, or the major and the minor versions, or the major, the minor and the patch version) of a SemVer 2.0.0 version number. For instance 1.9 is a valid SemVer template (because it does not have any patch number). + + + + + diff --git a/schema/mime-types.xsd b/schema/mime-types.xsd index 567cf01cfd4..7c1b78b18eb 100644 --- a/schema/mime-types.xsd +++ b/schema/mime-types.xsd @@ -4,7 +4,9 @@ Schema for eXist Mime Type Configuration file mime-types.xml --> - + diff --git a/schema/security-manager.xsd b/schema/security-manager.xsd index c06593c4115..a5cbed6c724 100644 --- a/schema/security-manager.xsd +++ b/schema/security-manager.xsd @@ -1,11 +1,11 @@ - + elementFormDefault="qualified" + targetNamespace="http://exist-db.org/Configuration" + version="2.0.0"> diff --git a/schema/server.xsd b/schema/server.xsd index fe73e980e62..ff206f79479 100644 --- a/schema/server.xsd +++ b/schema/server.xsd @@ -4,7 +4,9 @@ Schema for eXist Server Configuration file server.xml --> - + diff --git a/schema/users.xsd b/schema/users.xsd index 4b6e429d682..45da5443148 100644 --- a/schema/users.xsd +++ b/schema/users.xsd @@ -4,7 +4,9 @@ Schema for eXist Users Authentication file /db/system/users.xml --> - +