File: config.xsd

package info (click to toggle)
phpdox 0.12.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 7,672 kB
  • sloc: xml: 80,724; php: 9,167; makefile: 13
file content (137 lines) | stat: -rw-r--r-- 5,660 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           xmlns:src="http://xml.phpdox.net/config" xmlns:xsl="http://www.w3.org/2001/XMLSchema"
           attributeFormDefault="unqualified" elementFormDefault="qualified"
           targetNamespace="http://phpdox.net/config">

    <xs:element name="phpdox" type="src:configurationType"/>

    <xs:complexType name="configurationType">
        <xs:sequence>
            <xs:element name="bootstrap" type="src:bootstrapType" minOccurs="0" maxOccurs="1"/>
            <xs:element name="project" type="src:projectType" maxOccurs="1"/>
        </xs:sequence>
        <xs:attribute name="silent" type="src:booleanAttributeType"/>
    </xs:complexType>

    <xs:complexType name="bootstrapType">
        <xs:sequence>
            <xs:element name="require" type="src:fileType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <xs:complexType name="projectType">
        <xs:sequence>
            <xs:element name="property" type="src:propertyType" minOccurs="0" maxOccurs="1"/>
            <xs:element name="collector" type="src:collectorType" minOccurs="0" maxOccurs="1"/>
            <xs:element name="generator" type="src:generatorType" minOccurs="0" maxOccurs="1"/>
        </xs:sequence>
        <xs:attribute name="name" type="xs:string"/>
        <xs:attribute name="source" type="xs:string"/>
        <xs:attribute name="workdir" type="xs:string"/>
    </xs:complexType>

    <xs:complexType name="collectorType">
        <xs:sequence>
            <xs:element name="include" type="src:fileFilterType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="exclude" type="src:fileFilterType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="inheritance" type="src:inheritanceType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attribute name="publiconly" type="src:booleanAttributeType"/>
        <xs:attribute name="backend" type="xs:string"/>
    </xs:complexType>

    <xs:complexType name="inheritanceType">
        <xs:sequence>
          <xs:element name="dependency" type="src:pathType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attribute name="resolve" type="src:booleanAttributeType"/>
    </xs:complexType>

    <xs:complexType name="generatorType">
        <xs:sequence>
            <xs:element name="enrich" type="src:enrichType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="build" type="src:buildType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attribute name="output" type="xs:string"/>
    </xs:complexType>

    <xs:complexType name="enrichType">
        <xs:sequence>
            <xs:element name="source" type="src:enrichSourceType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attribute name="base" type="xs:string"/>
    </xs:complexType>

    <xs:complexType name="enrichSourceType">
        <xs:sequence>
            <xs:element name="file" type="src:nameType" minOccurs="0" maxOccurs="unbounded"/>
            <xsl:group ref="gitSourceGroup"/>
        </xs:sequence>
        <xs:attribute name="type" type="xs:string"/>
    </xs:complexType>

    <xs:complexType name="buildType">
        <xs:sequence>
            <xs:element name="template" type="src:dirType" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element name="file" type="src:extensionType" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attribute name="engine" type="xs:string" use="required"/>
        <xs:attribute name="enabled" type="src:booleanAttributeType"/>
        <xs:attribute name="output" type="xs:string"/>
    </xs:complexType>

    <xs:complexType name="pathType">
        <xs:attribute name="path" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="dirType">
        <xs:attribute name="dir" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="fileType">
        <xs:attribute name="file" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="nameType">
        <xs:attribute name="name" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="extensionType">
        <xs:attribute name="extension" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="fileFilterType">
        <xs:attribute name="mask" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:complexType name="propertyType">
        <xs:attribute name="name" type="xs:string" use="required"/>
        <xs:attribute name="value" type="xs:string" use="required"/>
    </xs:complexType>

    <xs:simpleType name="booleanAttributeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="true"/>
            <xs:enumeration value="false"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:group name="gitSourceGroup">
        <xs:sequence>
            <xs:element name="git" minOccurs="0">
                <xs:complexType>
                   <xs:attribute name="binary" type="xs:string" use="required"/>
                </xs:complexType>
            </xs:element>
            <xs:element name="history">
                <xs:complexType>
                    <xs:attribute name="enabled" type="src:booleanAttributeType"/>
                    <xs:attribute name="limit" type="xs:int"/>
                    <xs:attribute name="cache" type="xs:string"/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:group>

</xs:schema>