Skip to content

Instantly share code, notes, and snippets.

@philipsorst
Created November 9, 2026 10:30
Show Gist options
  • Select an option

  • Save philipsorst/2ddd389f6033dfbeee7e247d8e1a8e80 to your computer and use it in GitHub Desktop.

Select an option

Save philipsorst/2ddd389f6033dfbeee7e247d8e1a8e80 to your computer and use it in GitHub Desktop.
TecArt addon.xsd
<?xml version="1.0" encoding="UTF-8"?>
<!--
XML Schema (XSD 1.0) for the TecArt CRM add-on manifest "addon.xml".
Derived from: https://alt.crmhandbuch.de/WIKI/addon.xml_26314819.html
(TecArt Developer-Wiki, page "addon.xml", Confluence export 2024-02-27)
This file is an out-of-project artefact and is not consumed by the build.
Validate with libxml2's xmllint (see the schema annotation for the command) or point an
IDE at the file via xsi:noNamespaceSchemaLocation="addon.xsd".
Modelling notes:
* addon.xml carries no namespace, so the schema has no targetNamespace.
* The reference never states an element order; the skeleton (section 8) only shows one.
The top-level blocks are therefore modelled with xs:all (any order, each at most once).
Inside a block the child order of the reference's examples is enforced (desc before
the columns of a table, columns before UNIQUE, values before default, param before
precondition).
* Enumerations mirror the reference's own value lists (modules, field types, column
types, option types, autorun intervals). Extend them here when a CRM release adds one.
* Elements/attributes the reference calls mandatory but its own skeleton/examples omit
are modelled optional and flagged in their documentation.
* The skeleton of section 8 is a template, not a valid document: its attribute values are
empty placeholders (size="", window_open=""), its prefix placeholder is upper-case and
its <module> is empty, so it fails this schema until it is filled in.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:documentation>
XML Schema for the TecArt CRM add-on manifest addon.xml.
Validate a document with libxml2's xmllint:
xmllint --noout --schema addon.xsd path/to/addon.xml
Alternatively reference this schema from the document root:
xsi:noNamespaceSchemaLocation="addon.xsd"
</xs:documentation>
</xs:annotation>
<!-- ====================================================================
Simple types
==================================================================== -->
<!-- Boolean flag. The reference uses TRUE/FALSE, true/false and 1/0
interchangeably (e.g. hidelabel "TRUE = yes, everything else = FALSE",
webhook async "1 = asynchronous, 0 = synchronous"). -->
<xs:simpleType name="flagType">
<xs:annotation>
<xs:documentation>Boolean flag; the reference accepts the upper- and lower-case spellings and 1/0.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="true"/>
<xs:enumeration value="false"/>
<xs:enumeration value="TRUE"/>
<xs:enumeration value="FALSE"/>
<xs:enumeration value="1"/>
<xs:enumeration value="0"/>
</xs:restriction>
</xs:simpleType>
<!-- <prefix>: unique add-on id, "only numbers and lower-case letters". -->
<xs:simpleType name="addonPrefixType">
<xs:annotation>
<xs:documentation>Unique add-on id; only digits and lower-case letters.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[a-z0-9]+"/>
</xs:restriction>
</xs:simpleType>
<!-- Lower-case identifier used for field, table and column names. -->
<xs:simpleType name="identifierType">
<xs:annotation>
<xs:documentation>Lower-case identifier: only lower-case letters, digits and underscore.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[a-z0-9_]+"/>
</xs:restriction>
</xs:simpleType>
<!-- <lang>: ISO-2 language code as element text. -->
<xs:simpleType name="languageCodeType">
<xs:annotation>
<xs:documentation>ISO-2 language code (element text of &lt;lang&gt;).</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[a-z]{2}"/>
</xs:restriction>
</xs:simpleType>
<!-- Section 4: list of field types. -->
<xs:simpleType name="fieldTypeName">
<xs:annotation>
<xs:documentation>Field type, see reference section 4 "Liste der Feldtypen".</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="FIELDTYPE_TEXT"/>
<xs:enumeration value="FIELDTYPE_NUMBER"/>
<xs:enumeration value="FIELDTYPE_DATE"/>
<xs:enumeration value="FIELDTYPE_CHECKBOX"/>
<xs:enumeration value="FIELDTYPE_SELECT_SINGLE"/>
<xs:enumeration value="FIELDTYPE_SELECT_MULTIPLE"/>
<xs:enumeration value="FIELDTYPE_CURRENCY"/>
<xs:enumeration value="FIELDTYPE_CONTACT"/>
<xs:enumeration value="FIELDTYPE_PROJECT"/>
<xs:enumeration value="FIELDTYPE_BUTTON"/>
<xs:enumeration value="FIELDTYPE_TEMPLATE"/>
<xs:enumeration value="FIELDTYPE_TICKET"/>
<xs:enumeration value="FIELDTYPE_CONTRACT"/>
<xs:enumeration value="FIELDTYPE_OFFER"/>
<xs:enumeration value="FIELDTYPE_TEXTAREA"/>
<xs:enumeration value="FIELDTYPE_ARTICLEGROUP"/>
<xs:enumeration value="FIELDTYPE_PRINTLAYOUT"/>
<xs:enumeration value="FIELDTYPE_CLIENTACCOUNT"/>
<xs:enumeration value="FIELDTYPE_ARTICLE"/>
<xs:enumeration value="FIELDTYPE_ORDER"/>
<xs:enumeration value="FIELDTYPE_COSTCENTER"/>
<xs:enumeration value="FIELDTYPE_DATE_TIME"/>
<xs:enumeration value="FIELDTYPE_INVOICE"/>
<xs:enumeration value="FIELDTYPE_FIELD_RELATION"/>
<xs:enumeration value="FIELDTYPE_PASSWORD"/>
<xs:enumeration value="FIELDTYPE_TREE"/>
<xs:enumeration value="FIELDTYPE_GROUPSELECT"/>
<xs:enumeration value="FIELDTYPE_RESOURCE"/>
</xs:restriction>
</xs:simpleType>
<!-- Section 5: list of column types. -->
<xs:simpleType name="columnTypeName">
<xs:annotation>
<xs:documentation>Column type, see reference section 5 "Liste der Spaltentypen".</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="C"/>
<xs:enumeration value="X"/>
<xs:enumeration value="B"/>
<xs:enumeration value="I1"/>
<xs:enumeration value="I2"/>
<xs:enumeration value="I4"/>
<xs:enumeration value="I8"/>
<xs:enumeration value="F"/>
</xs:restriction>
</xs:simpleType>
<!-- Section 2: modules that can be required by an add-on. -->
<xs:simpleType name="requirementModuleName">
<xs:annotation>
<xs:documentation>Required CRM module, see reference section 2 "Liste der Module".</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="TALKS"/>
<xs:enumeration value="PROJECTS"/>
<xs:enumeration value="FORUMS"/>
<xs:enumeration value="INVOICES"/>
<xs:enumeration value="CONTRACTS"/>
<xs:enumeration value="OFFERS"/>
<xs:enumeration value="ACCOUNTS"/>
<xs:enumeration value="VACATIONS"/>
<xs:enumeration value="ROTAS"/>
<xs:enumeration value="REPORTING"/>
<xs:enumeration value="TICKETS"/>
<xs:enumeration value="ARTICLES"/>
<xs:enumeration value="PROTOCOLS"/>
<xs:enumeration value="RESOURCES"/>
<xs:enumeration value="BACKUP"/>
<xs:enumeration value="ORDERS"/>
<xs:enumeration value="CUSTOM_LANG"/>
<xs:enumeration value="WEBSERVICES"/>
</xs:restriction>
</xs:simpleType>
<!-- Section 3: modules of the field management ("MODULE_*" identifiers). -->
<xs:simpleType name="fieldModuleName">
<xs:annotation>
<xs:documentation>Field management module, see reference section 3 "Liste der Feldverwaltungsmodule".
MODULE_RESSOURCES keeps the reference's spelling.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="MODULE_CONTACTS"/>
<xs:enumeration value="MODULE_PERSONS"/>
<xs:enumeration value="MODULE_PROJECTS"/>
<xs:enumeration value="MODULE_CONTRACTS"/>
<xs:enumeration value="MODULE_OFFERS"/>
<xs:enumeration value="MODULE_TICKETS"/>
<xs:enumeration value="MODULE_RESSOURCES"/>
<xs:enumeration value="MODULE_ARTICLES"/>
<xs:enumeration value="MODULE_CLIENT_ACCOUNTS"/>
<xs:enumeration value="MODULE_INVOICES"/>
<xs:enumeration value="MODULE_PAYMENTS"/>
<xs:enumeration value="MODULE_ADMONITIONS"/>
<xs:enumeration value="MODULE_ORDERS"/>
<xs:enumeration value="MODULE_DELIVERIES"/>
<xs:enumeration value="MODULE_VOUCHERS"/>
<xs:enumeration value="MODULE_PURCHASES"/>
<xs:enumeration value="MODULE_CASHJOURNALS"/>
<xs:enumeration value="MODULE_CALLS"/>
<xs:enumeration value="MODULE_TODOS"/>
<xs:enumeration value="MODULE_APPOINTMENTS"/>
<xs:enumeration value="MODULE_NOTES"/>
</xs:restriction>
</xs:simpleType>
<!-- Section 1.24.1: types of an administration option. -->
<xs:simpleType name="optionTypeName">
<xs:annotation>
<xs:documentation>Administration option type, see reference section 1.24.1.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="checkbox"/>
<xs:enumeration value="date"/>
<xs:enumeration value="datetime"/>
<xs:enumeration value="select_single"/>
<xs:enumeration value="select_multiple"/>
<xs:enumeration value="select_group"/>
<xs:enumeration value="select_user"/>
<xs:enumeration value="string"/>
<xs:enumeration value="text"/>
<xs:enumeration value="password"/>
</xs:restriction>
</xs:simpleType>
<!-- Section 1.25.1.1: same as optionTypeName, minus datetime and select_user. -->
<xs:simpleType name="containerOptionTypeName">
<xs:annotation>
<xs:documentation>Container type option; identical to the add-on option types
except the excluded datetime and select_user.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="checkbox"/>
<xs:enumeration value="date"/>
<xs:enumeration value="select_single"/>
<xs:enumeration value="select_multiple"/>
<xs:enumeration value="select_group"/>
<xs:enumeration value="string"/>
<xs:enumeration value="text"/>
<xs:enumeration value="password"/>
</xs:restriction>
</xs:simpleType>
<!-- Section 1.15.1: autorun execution interval. -->
<xs:simpleType name="autorunIntervalType">
<xs:annotation>
<xs:documentation>Autorun interval: 1/2/3 = every 10/20/30 minutes, 6/12/24/36/72 =
every 1/2/4/6/12 hours, time01/time02/time23/time24 = daily at that hour.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
<xs:enumeration value="3"/>
<xs:enumeration value="6"/>
<xs:enumeration value="12"/>
<xs:enumeration value="24"/>
<xs:enumeration value="36"/>
<xs:enumeration value="72"/>
<xs:enumeration value="time23"/>
<xs:enumeration value="time24"/>
<xs:enumeration value="time01"/>
<xs:enumeration value="time02"/>
</xs:restriction>
</xs:simpleType>
<!-- Section 1.12.1: field/@style (0 = normal, 1 = bold, 2 = italic, 3 = underlined). -->
<xs:simpleType name="fieldStyleType">
<xs:annotation>
<xs:documentation>Field style: 0 = normal, 1 = bold, 2 = italic, 3 = underlined.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
<xs:enumeration value="3"/>
</xs:restriction>
</xs:simpleType>
<!-- Section 1.12.1: field/@listsort (0 = alphabetical, 1 = index, 2 = free). -->
<xs:simpleType name="listSortType">
<xs:annotation>
<xs:documentation>List sorting: 0 = alphabetical, 1 = index, 2 = free.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="0"/>
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
</xs:restriction>
</xs:simpleType>
<!-- ====================================================================
Reusable complex types
==================================================================== -->
<!-- <param>: URL parameter of a button, menu item, webhook, autorun, register or form. -->
<xs:complexType name="paramType">
<xs:annotation>
<xs:documentation>URL parameter. Placeholders such as $sid, $uid, $selected, $all_items,
$filter_id, $search, $oid or a field name of the current object may be used in value.</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation><xs:documentation>Parameter name.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="value" type="xs:string" use="required">
<xs:annotation><xs:documentation>Parameter value; may contain placeholders.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<!-- <DEFAULT>: default value of a column (upper-case tag on purpose). -->
<xs:complexType name="defaultValueType">
<xs:annotation>
<xs:documentation>Default value of a column. The tag is upper-case on purpose.</xs:documentation>
</xs:annotation>
<xs:attribute name="value" type="xs:string" use="required">
<xs:annotation><xs:documentation>Default value.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<!-- <UNIQUE>: marks an index as unique (upper-case tag on purpose). -->
<xs:complexType name="uniqueType">
<xs:annotation>
<xs:documentation>Marks the enclosing index as unique. The tag is upper-case on purpose.</xs:documentation>
</xs:annotation>
</xs:complexType>
<!-- ====================================================================
<requirements>
==================================================================== -->
<xs:complexType name="crmVersionsType">
<xs:annotation>
<xs:documentation>Minimum CRM versions, split by minor release.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="crm_version" type="xs:string" minOccurs="1" maxOccurs="unbounded">
<xs:annotation><xs:documentation>Minimum CRM version, e.g. 4.10.33101.</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="phpVersionsType">
<xs:annotation>
<xs:documentation>Minimum PHP versions, split by minor release.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="php_version" type="xs:string" minOccurs="1" maxOccurs="unbounded">
<xs:annotation><xs:documentation>Minimum PHP version, e.g. 7.2.</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="requiredModulesType">
<xs:annotation>
<xs:documentation>CRM modules the add-on needs; installation fails when one is missing.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="module" type="requirementModuleName" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="crmUrlsType">
<xs:annotation>
<xs:documentation>CRM system URLs the add-on may be installed on; all systems when omitted.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="crm_url" type="xs:string" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="requirementsType">
<xs:annotation>
<xs:documentation>System requirements of the add-on.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="crm_version" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Minimum CRM version (e.g. 4.5.16718). Unused since CRM 5.1.1;
crm_versions is recommended since 5.0.145.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="crm_versions" type="crmVersionsType" minOccurs="0">
<xs:annotation>
<xs:documentation>Minimum CRM versions per minor release. Mandatory since CRM 5.1.1.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="php_version" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Minimum PHP version (e.g. 5.5.33); php_versions is recommended
since 5.0.145.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="php_versions" type="phpVersionsType" minOccurs="0"/>
<xs:element name="modules" type="requiredModulesType" minOccurs="0"/>
<xs:element name="crm_urls" type="crmUrlsType" minOccurs="0"/>
</xs:all>
</xs:complexType>
<!-- ====================================================================
<languages>
==================================================================== -->
<xs:complexType name="languageType">
<xs:annotation>
<xs:documentation>A supported language. The element text is the ISO-2 code, src points at
the language file inside the add-on (".inc.php" is appended).</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="languageCodeType">
<xs:attribute name="src" type="xs:string" use="required">
<xs:annotation><xs:documentation>Path of the language file inside the add-on,
e.g. lang/de. The reference calls it an absolute path, but its own example is
relative to the add-on directory, so no pattern is enforced.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="languagesType">
<xs:annotation><xs:documentation>Languages supported by the add-on.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="lang" type="languageType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- ====================================================================
<fields>
==================================================================== -->
<xs:complexType name="addonFieldType">
<xs:annotation>
<xs:documentation>A field created in the field management for a module; it is then
reachable through the API and treated like a system field.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="DEFAULT" type="defaultValueType" minOccurs="0">
<xs:annotation><xs:documentation>Default value; used by the reference's own example.</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="identifierType" use="required">
<xs:annotation><xs:documentation>Field name: lower-case letters, digits and underscore.
Translated when a language variable with this name exists.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="module" type="fieldModuleName" use="required">
<xs:annotation><xs:documentation>Module the field is created in.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="fieldTypeName" use="required">
<xs:annotation><xs:documentation>Field type.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="default" type="xs:string">
<xs:annotation><xs:documentation>Default value.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="filter" type="xs:string">
<xs:annotation><xs:documentation>Path to an Addon_Field class. Deprecated since v4.9,
use class instead.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="class" type="xs:string">
<xs:annotation><xs:documentation>Path to an Add-on_Field class (since v4.9).</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="hidelabel" type="flagType">
<xs:annotation><xs:documentation>Hide the label (TRUE = yes, any other value = FALSE).</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="obligatory" type="flagType">
<xs:annotation><xs:documentation>Mandatory field.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="readonly" type="flagType">
<xs:annotation><xs:documentation>Read-only field.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="size" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Text length.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="style" type="fieldStyleType">
<xs:annotation><xs:documentation>Field style.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="title" type="xs:string">
<xs:annotation><xs:documentation>Quick-info text; language parameters cannot be used here.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="width" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Width in pixels.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:string">
<xs:annotation><xs:documentation>Button field: target.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_height" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Button field: window height.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_open" type="flagType">
<xs:annotation><xs:documentation>Button field: true opens a new window, FALSE triggers
an Ajax request.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_width" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Button field: window width.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="label" type="xs:string">
<xs:annotation><xs:documentation>Button field: button text.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="list" type="xs:string">
<xs:annotation><xs:documentation>List field: name of the list used (FIELDTYPE_SELECT_SINGLE
or FIELDTYPE_SELECT_MULTIPLE); may be a list defined in the add-on.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="listsave" type="flagType">
<xs:annotation><xs:documentation>List field: save the text value (false) or the index (true);
FIELDTYPE_SELECT_SINGLE only.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="listsort" type="listSortType">
<xs:annotation><xs:documentation>List field: sorting of the list.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="longlist" type="flagType">
<xs:annotation><xs:documentation>List field: store many values;
FIELDTYPE_SELECT_MULTIPLE only.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="object" type="xs:string">
<xs:annotation><xs:documentation>Relation field (since v5.0): name of the data source.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="field" type="xs:string">
<xs:annotation><xs:documentation>Relation field (since v5.0): name of the field taken
over from the data source.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="dictionary_check" type="xs:string">
<xs:annotation><xs:documentation>Password field: dictionary check (values not documented).</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="fieldsType">
<xs:annotation><xs:documentation>Add-on specific fields created in the field management.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="field" type="addonFieldType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- ====================================================================
<tables>
==================================================================== -->
<xs:complexType name="columnDefinitionType">
<xs:annotation>
<xs:documentation>A column of an add-on specific table. The name must be usable as an
SQL identifier (lower-case letters, digits, underscore).</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="DEFAULT" type="defaultValueType" minOccurs="0">
<xs:annotation><xs:documentation>Default value of the column.</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="identifierType" use="required">
<xs:annotation><xs:documentation>Column name.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="type" type="columnTypeName" use="required">
<xs:annotation><xs:documentation>Column type; C and X require size (max 256 resp. 4000).</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="size" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Column size.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="indexType">
<xs:annotation>
<xs:documentation>An index over one or more columns of the table; columns are listed as
&lt;col&gt; elements.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="col" type="identifierType" minOccurs="1" maxOccurs="unbounded">
<xs:annotation><xs:documentation>Column included in the index.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="UNIQUE" type="uniqueType" minOccurs="0">
<xs:annotation><xs:documentation>Create a unique index.</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation><xs:documentation>Index name.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="tableType">
<xs:annotation>
<xs:documentation>An add-on specific database table; accessible through addon_tab.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="desc" type="xs:string" minOccurs="0">
<xs:annotation><xs:documentation>Table description.</xs:documentation></xs:annotation>
</xs:element>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="field" type="columnDefinitionType"/>
<xs:element name="index" type="indexType"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="name" type="identifierType" use="required">
<xs:annotation><xs:documentation>Table name.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="security" type="flagType">
<xs:annotation><xs:documentation>Since v4.7: enable security settings for the records of
this table.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="logging" type="flagType">
<xs:annotation><xs:documentation>Since v4.7: enable logging for the records of this
table.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="tablesType">
<xs:annotation><xs:documentation>Add-on specific tables.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="table" type="tableType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- ====================================================================
<webhooks> / <autoruns>
==================================================================== -->
<xs:complexType name="conditionType">
<xs:annotation>
<xs:documentation>A precondition condition. The reference only shows an example
(&lt;condition con="" field="name" operator="LIKE%" value="Aufbau"/&gt;) and does not
document the attribute semantics, so all attributes are modelled optional.</xs:documentation>
</xs:annotation>
<xs:attribute name="con" type="xs:string">
<xs:annotation><xs:documentation>Logical connector to the previous condition.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="field" type="xs:string">
<xs:annotation><xs:documentation>Field to test.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="operator" type="xs:string">
<xs:annotation><xs:documentation>Comparison operator, e.g. LIKE%.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="value" type="xs:string">
<xs:annotation><xs:documentation>Comparison value.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="preconditionType">
<xs:annotation>
<xs:documentation>Since v5.0: prevents the webhook from running when the conditions do
not hold.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="condition" type="conditionType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="webhookType">
<xs:annotation><xs:documentation>A webhook.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="precondition" type="preconditionType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="hook" type="xs:string" use="required">
<xs:annotation><xs:documentation>Hook identifier.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:string" use="required">
<xs:annotation><xs:documentation>Target class inside the add-on.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="async" type="flagType">
<xs:annotation><xs:documentation>1 = run asynchronously, 0 = synchronously (default 0).</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="webhooksType">
<xs:annotation><xs:documentation>Webhooks registered by the add-on.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="webhook" type="webhookType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="autorunType">
<xs:annotation>
<xs:documentation>Since v4.7: an autorun entry. The reference lists "allowed in:
&lt;webhooks&gt;" here, which is a documentation slip - autorun belongs to
&lt;autoruns&gt;.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="target" type="xs:string" use="required">
<xs:annotation><xs:documentation>Target class inside the add-on.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="interval" type="autorunIntervalType" use="required">
<xs:annotation><xs:documentation>Execution interval.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="autorunsType">
<xs:annotation><xs:documentation>Autorun entries.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="autorun" type="autorunType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- ====================================================================
<externals>
==================================================================== -->
<xs:complexType name="externalType">
<xs:annotation>
<xs:documentation>A class callable from outside without authentication. A token and a
user are configured per external access in the administration.</xs:documentation>
</xs:annotation>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation><xs:documentation>Class identifier; translated in the administration.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:string" use="required">
<xs:annotation><xs:documentation>Target class inside the add-on.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="externalsType">
<xs:annotation><xs:documentation>Externally callable classes.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="external" type="externalType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- ====================================================================
<lists>
==================================================================== -->
<xs:complexType name="listItemType">
<xs:annotation>
<xs:documentation>A list entry. Besides key and de, every ISO-2 language code is allowed
as an attribute (e.g. en, fr, it); the values are the translated labels.</xs:documentation>
</xs:annotation>
<xs:attribute name="key" type="xs:string" use="required">
<xs:annotation><xs:documentation>Index of the entry.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="de" type="xs:string">
<xs:annotation><xs:documentation>German label.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:anyAttribute processContents="skip">
<xs:annotation>
<xs:documentation>Additional labels keyed by ISO-2 language code.</xs:documentation>
</xs:annotation>
</xs:anyAttribute>
</xs:complexType>
<xs:complexType name="listType">
<xs:annotation>
<xs:documentation>A list usable in fields; it is not visible in the list management.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="item" type="listItemType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation><xs:documentation>List name; masked for the add-on.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="module" type="fieldModuleName" use="required">
<xs:annotation><xs:documentation>Module the list belongs to.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="listsType">
<xs:annotation><xs:documentation>Lists defined by the add-on.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="list" type="listType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- ====================================================================
<newmenu> / <adminsections> / <buttons> / <registers> / <module_forms>
==================================================================== -->
<xs:complexType name="menuButtonType">
<xs:annotation>
<xs:documentation>Since v4.10: a menu button. The reference documents it identically for
&lt;newmenu&gt;/&lt;item&gt; and &lt;adminsections&gt;/&lt;adminsection&gt;.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="label" type="xs:string" use="required">
<xs:annotation><xs:documentation>Button label; a language variable may be used.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:string" use="required">
<xs:annotation><xs:documentation>Target class inside the add-on. A button placed in the main
menu always needs a View class.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_open" type="flagType">
<xs:annotation><xs:documentation>Open a new window.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_height" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Height of the opened window.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_width" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Width of the opened window.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="class" type="xs:string">
<xs:annotation><xs:documentation>Since v5.0: reference to an add-on class that can hide the
button on demand.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="newMenuType">
<xs:annotation><xs:documentation>Entries of the "New" menu.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="item" type="menuButtonType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="adminSectionsType">
<xs:annotation><xs:documentation>Administration buttons (below "Add-ons").</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="adminsection" type="menuButtonType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="buttonType">
<xs:annotation>
<xs:documentation>Since v4.6: a simple button. Its target must be a View class when it
opens a window, an Ajax class otherwise.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="area" type="xs:string" use="required">
<xs:annotation><xs:documentation>Place the button is shown in; main_menu places it in the
main menu. All areas are listed under Administration &gt; System &gt; Buttons.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="label" type="xs:string" use="required">
<xs:annotation><xs:documentation>Button label; a language variable may be used.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:string" use="required">
<xs:annotation><xs:documentation>Target class inside the add-on.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_open" type="flagType">
<xs:annotation><xs:documentation>Open a new window.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_height" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Height of the opened window.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_width" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Width of the opened window.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="description" type="xs:string">
<xs:annotation><xs:documentation>Button tooltip.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="class" type="xs:string">
<xs:annotation><xs:documentation>Since v4.9: reference to an add-on class that can hide the
button on demand.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="only_toolbar" type="flagType">
<xs:annotation><xs:documentation>Since v5.0: when true, no context menu entry is added in
the same overview.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="buttonsType">
<xs:annotation><xs:documentation>Buttons of the add-on.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="button" type="buttonType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="registerType">
<xs:annotation><xs:documentation>Since v4.7: a register (tab).</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="module" type="fieldModuleName" use="required">
<xs:annotation><xs:documentation>Module the register belongs to.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="overview" type="flagType">
<xs:annotation><xs:documentation>true shows the register in the overview, otherwise in the
detail view.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="label" type="xs:string" use="required">
<xs:annotation><xs:documentation>Register label; a language variable may be used.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:string" use="required">
<xs:annotation><xs:documentation>Target class inside the add-on.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_open" type="flagType">
<xs:annotation><xs:documentation>Open a new window.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_height" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Height of the opened window.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="window_width" type="xs:positiveInteger">
<xs:annotation><xs:documentation>Width of the opened window.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="registersType">
<xs:annotation><xs:documentation>Registers (tabs) of the add-on.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="register" type="registerType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="moduleFormType">
<xs:annotation>
<xs:documentation>Since v5.1: a form shown as an additional register in the header data of
a detail view.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="param" type="paramType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="module" type="fieldModuleName" use="required">
<xs:annotation><xs:documentation>Module the form belongs to.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="label" type="xs:string" use="required">
<xs:annotation><xs:documentation>Label of the register showing the form; a language
variable may be used.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:string" use="required">
<xs:annotation><xs:documentation>Target class inside the add-on.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="moduleFormsType">
<xs:annotation><xs:documentation>Forms of the add-on.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="module_form" type="moduleFormType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- ====================================================================
<reports>
==================================================================== -->
<xs:complexType name="reportType">
<xs:annotation><xs:documentation>Since v4.10/5.0: an add-on report.</xs:documentation></xs:annotation>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation><xs:documentation>Report identifier.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="target" type="xs:string" use="required">
<xs:annotation><xs:documentation>Target class inside the add-on.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="reportsType">
<xs:annotation><xs:documentation>Reports of the add-on.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="report" type="reportType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- ====================================================================
<configuration> and <container_types>
==================================================================== -->
<xs:complexType name="optionValueType">
<xs:annotation><xs:documentation>A selectable value of a select_single/select_multiple
option.</xs:documentation></xs:annotation>
<xs:attribute name="key" type="xs:string" use="required">
<xs:annotation><xs:documentation>Value that is stored.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="string" type="xs:string" use="required">
<xs:annotation><xs:documentation>Label of the entry; it is translated.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="optionValuesType">
<xs:annotation><xs:documentation>Selection list of a select_single/select_multiple
option.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="value" type="optionValueType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="optionType">
<xs:annotation>
<xs:documentation>An administration option, read with get_option. values is only
meaningful for select_single/select_multiple; default is used for a multi-line
default value.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="values" type="optionValuesType" minOccurs="0"/>
<xs:element name="default" type="xs:string" minOccurs="0">
<xs:annotation><xs:documentation>Multi-line default value.</xs:documentation></xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="type" type="optionTypeName" use="required">
<xs:annotation><xs:documentation>Option type.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation><xs:documentation>Option identifier; translated in the administration and
used as the storage key.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="default" type="xs:string">
<xs:annotation><xs:documentation>Default value.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="info" type="xs:string">
<xs:annotation><xs:documentation>Description of the option; it is translated.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="validator" type="xs:string">
<xs:annotation><xs:documentation>Path to a custom validation class.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="configurationType">
<xs:annotation>
<xs:documentation>Administration settings of the add-on.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="option" type="optionType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="set" type="xs:string">
<xs:annotation><xs:documentation>Groups options into their own box; options sharing a set
value are shown together. The label is translated.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="containerOptionType">
<xs:annotation>
<xs:documentation>An option of a container type; same shape as optionType, but datetime and
select_user are not available.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="values" type="optionValuesType" minOccurs="0"/>
<xs:element name="default" type="xs:string" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="type" type="containerOptionTypeName" use="required">
<xs:annotation><xs:documentation>Option type.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation><xs:documentation>Option identifier; translated in the administration and
used as the storage key.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="default" type="xs:string">
<xs:annotation><xs:documentation>Default value.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="info" type="xs:string">
<xs:annotation><xs:documentation>Description of the option; it is translated.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="validator" type="xs:string">
<xs:annotation><xs:documentation>Path to a custom validation class.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="containerConfigurationType">
<xs:annotation>
<xs:documentation>Options of a container type; the administrator sets them when creating or
editing a container, the add-on view class reads them.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="option" type="containerOptionType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="set" type="xs:string">
<xs:annotation><xs:documentation>Groups options into their own box; options sharing a set
value are shown together.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="containerTypeType">
<xs:annotation>
<xs:documentation>Since v5.0: an add-on specific container type shown on start pages.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="configuration" type="containerConfigurationType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="class" type="xs:string" use="required">
<xs:annotation><xs:documentation>Name of an addon_view class.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="name" type="xs:string" use="required">
<xs:annotation><xs:documentation>Identifier of the container type.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="label" type="xs:string" use="required">
<xs:annotation><xs:documentation>Label shown in the container type list; a language variable
may be used.</xs:documentation></xs:annotation>
</xs:attribute>
<xs:attribute name="has_auto_refresh" type="flagType">
<xs:annotation><xs:documentation>When true, users can enable automatic refresh for
containers of this type.</xs:documentation></xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="containerTypesType">
<xs:annotation><xs:documentation>Since v5.0: add-on specific container types.</xs:documentation></xs:annotation>
<xs:sequence>
<xs:element name="container_type" type="containerTypeType" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<!-- ====================================================================
Root element <tecart_addon>
==================================================================== -->
<xs:complexType name="tecartAddonType">
<xs:annotation>
<xs:documentation>Root node of addon.xml; holds every other setting. author, version,
prefix, name, requirements and languages follow the reference's skeleton (section 8),
which introduces its "optional settings" only after languages.</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="author" type="xs:string" minOccurs="1">
<xs:annotation><xs:documentation>Author name.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="version" type="xs:string" minOccurs="1">
<xs:annotation><xs:documentation>Add-on version, used to point users at updates.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="licence_file" type="xs:string" minOccurs="0">
<xs:annotation><xs:documentation>URL of a file showing the licence terms. A non-HTTP link
is looked up at that location inside the add-on directory.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="changelog" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation>Path of a changelog file inside the add-on (HTML, plain text, or
markdown with the .md/.markdown extension). The reference calls this mandatory but
its own skeleton and examples omit it, so it is modelled optional. Tags and value
must stay on one line.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="help_file" type="xs:string" minOccurs="0">
<xs:annotation><xs:documentation>URL of the add-on help. A non-HTTP link is looked up at
that location inside the add-on directory. Tags and value must stay on one line,
otherwise the help button does not appear.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="prefix" type="addonPrefixType" minOccurs="1">
<xs:annotation><xs:documentation>Unique add-on id, used to namespace add-on specific
columns, tables and configuration options.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="setup_job" type="xs:string" minOccurs="0">
<xs:annotation><xs:documentation>Since v4.7: add-on job class run after a successful
installation and after the add-on settings are saved.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="name" type="xs:string" minOccurs="1">
<xs:annotation><xs:documentation>Add-on label; may be a language variable.</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="requirements" type="requirementsType" minOccurs="1"/>
<xs:element name="languages" type="languagesType" minOccurs="1"/>
<xs:element name="fields" type="fieldsType" minOccurs="0"/>
<xs:element name="tables" type="tablesType" minOccurs="0"/>
<xs:element name="webhooks" type="webhooksType" minOccurs="0"/>
<xs:element name="autoruns" type="autorunsType" minOccurs="0"/>
<xs:element name="externals" type="externalsType" minOccurs="0"/>
<xs:element name="lists" type="listsType" minOccurs="0"/>
<xs:element name="newmenu" type="newMenuType" minOccurs="0"/>
<xs:element name="adminsections" type="adminSectionsType" minOccurs="0"/>
<xs:element name="buttons" type="buttonsType" minOccurs="0"/>
<xs:element name="registers" type="registersType" minOccurs="0"/>
<xs:element name="reports" type="reportsType" minOccurs="0"/>
<xs:element name="module_forms" type="moduleFormsType" minOccurs="0"/>
<xs:element name="configuration" type="configurationType" minOccurs="0"/>
<xs:element name="container_types" type="containerTypesType" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:element name="tecart_addon" type="tecartAddonType">
<xs:annotation>
<xs:documentation>Root element of addon.xml. It has no attributes.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment