-
Notifications
You must be signed in to change notification settings - Fork 3
Config
Mamadou Sy edited this page Mar 22, 2016
·
2 revisions
The config.xml
file is the main reference of the ADX.
It contains all metadata, public/private properties and generation rules.
It must be available at the root of the ADX file structure.
The schema of config.xml
is defined by the ADCSchema.xsd file for ADC and ADPSchema.xsd file for ADP.
The root node of Config.xml is:
<page> ADP only
<control> ADC only
Both config contains 4 parts:
- The meta information: <info>
- The available outputs: <outputs>
- The properties for the end-user configuration: <properties>
- List all available AskiaScript functions: <functions>
Legal version number using maximum 3 digits and optional alpha, beta or rc version.
Pattern
^(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:\.(\d+))?(?:\.(alpha|beta|rc)(\d*))?$
Examples
1
1.0
1.0.1
1.0.1.alpha
1.alpha1
2.12.132.beta25
0.2.rc3
Based on xsd:token and restricted to a number pattern, it allows the usage of star symbol (*) to indicates an unbounded number.
Pattern
^-?(\*|\d+(\.\d+)?)$
Examples
0
0.1
123.456
456
"*" (unbounded number)