Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/vim71/autoload/xml/xsd.vim
blob: 8a673ea21e1c503fac60bafb725e826f3f64ddbb (plain)
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
" Author: Thomas Barthel
" Last change: 2007 May 8
let g:xmldata_xsd = {
	\ 'schema': [
		\ [ 'include', 'import', 'redefine', 'annotation', 'simpleType', 'complexType', 'element', 'attribute', 'attributeGroup', 'group', 'notation', 'annotation'],
		\ { 'targetNamespace' : [], 'version' : [], 'xmlns' : [], 'finalDefault' : [], 'blockDefault' : [], 'id' : [], 'elementFormDefault' : [], 'attributeFormDefault' : [], 'xml:lang' : [] }],
	\ 'redefine' : [
		\ ['annotation', 'simpleType', 'complexType', 'attributeGroup', 'group'],
		\ {'schemaLocation' : [], 'id' : []} ],
	\ 'include' : [
		\ ['annotation'],
		\ {'namespace' : [], 'id' : []} ],
	\ 'import' : [
		\ ['annotation'],
		\ {'namespace' : [], 'schemaLocation' : [], 'id' : []} ],
	\ 'complexType' : [
		\ ['annotation', 'simpleContent', 'complexContent', 'all', 'choice', 'sequence', 'group', 'attribute', 'attributeGroup', 'anyAttribute'],
		\ {'name' : [], 'id' : [], 'abstract' : [], 'final' : [], 'block' : [], 'mixed' : []} ],
	\ 'complexContent' : [
		\ ['annotation', 'restriction', 'extension'],
		\ {'mixed' : [], 'id' : [] } ],
	\ 'simpleType' : [
		\ ['annotation', 'restriction', 'list', 'union'],
		\ {'name' : [], 'final' : [], 'id' : []} ],
	\ 'simpleContent' : [
		\ ['annotation', 'restriction', 'extension'],
		\ {'id' : []} ],
	\ 'element' : [
		\ ['annotation', 'complexType', 'simpleType', 'unique', 'key', 'keyref'],
		\ {'name' : [], 'id' : [], 'ref' : [], 'type' : [], 'minOccurs' : [], 'maxOccurs' : [], 'nillable' : [], 'substitutionGroup' : [], 'abstract' : [], 'final' : [], 'block' : [], 'default' : [], 'fixed' : [], 'form' : []} ],
	\ 'attribute' : [
		\ ['annotation', 'simpleType'],
		\ {'name' : [], 'id' : [], 'ref' : [], 'type' : [], 'use' : [], 'default' : [], 'fixed' : [], 'form' : []} ],
	\ 'group' : [
		\ ['annotation', 'all', 'choice', 'sequence'],
		\ {'name' : [], 'ref' : [], 'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ],
	\ 'choice' : [
		\ ['annotation', 'element', 'group', 'choice', 'sequence', 'any'],
		\ {'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ],
	\ 'sequence' : [
		\ ['annotation', 'element', 'group', 'choice', 'sequence', 'any'],
		\ {'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ],
	\ 'all' : [
		\ ['annotation', 'element'],
		\ {'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ],
	\ 'any' : [
		\ ['annotation'],
		\ {'namespace' : [], 'processContents' : [], 'minOccurs' : [], 'maxOccurs' : [], 'id' : []} ],
	\ 'unique' : [
		\ ['annotation', 'selector', 'field'],
		\ {'name' : [],  'id' : []} ],
	\ 'key' : [
		\ ['annotation', 'selector', 'field'],
		\ {'name' : [],  'id' : []} ],
	\ 'keyref' : [
		\ ['annotation', 'selector', 'field'],
		\ {'name' : [], 'refer' : [], 'id' : []} ],
	\ 'selector' : [
		\ ['annotation'],
		\ {'xpath' : [],  'id' : []} ],
	\ 'field' : [
		\ ['annotation'],
		\ {'xpath' : [],  'id' : []} ],
	\ 'restriction' : [
		\ ['annotation', 'simpleType', 'minExclusive', 'maxExclusive', 'minInclusive', 'maxInclusive', 'totalDigits', 'fractionDigits', 'length', 'minLength', 'maxLength', 'enumeration', 'whiteSpace', 'pattern'],
		\ {'base' : [], 'id' : []} ],
	\ 'minExclusive' : [
		\ ['annotation'],
		\ {'value' : [], 'id' : [], 'fixed' : []}],
	\ 'maxExclusive' : [
		\ ['annotation'],
		\ {'value' : [], 'id' : [], 'fixed' : []}],
	\ 'minInclusive' : [
		\ ['annotation'],
		\ {'value' : [], 'id' : [], 'fixed' : []}],
	\ 'maxInclusive' : [
		\ ['annotation'],
		\ {'value' : [], 'id' : [], 'fixed' : []}],
	\ 'totalDigits' : [		
	    \ ['annotation'],
		\ {'value' : [], 'id' : [], 'fixed' : []}],
	\ 'fractionDigits' : [
		\ ['annotation'],
		\ {'value' : [], 'id' : [], 'fixed' : []}],
     \ 'length' : [
     	\ ['annotation'],
     	\ {'value' : [], 'id' : [], 'fixed' : []}],
     \ 'minLength' : [
     	\ ['annotation'],
     	\ {'value' : [], 'id' : [], 'fixed' : []}],
     \ 'maxLength' : [
     	\ ['annotation'],
     	\ {'value' : [], 'id' : [], 'fixed' : []}],
     \ 'enumeration' : [
     	\ ['annotation'],
     	\ {'value' : [], 'id' : []}],
     \ 'whiteSpace' : [
     	\ ['annotation'],
     	\ {'value' : [], 'id' : [], 'fixed' : []}],
     \ 'pattern' : [
     	\ ['annotation'],
     	\ {'value' : [], 'id' : []}],
     \ 'extension' : [
     	\ ['annotation', 'all', 'choice', 'sequence', 'group', 'attribute', 'attributeGroup', 'anyAttribute'],
		\ {'base' : [], 'id' : []} ],
	 \ 'attributeGroup' : [
	 	\ ['annotation', 'attribute', 'attributeGroup', 'anyAttribute'],
	 	\ {'name' : [], 'id' : [], 'ref' : []} ],
	 \ 'anyAttribute' : [
	 	\ ['annotation'],
	 	\ {'namespace' : [], 'processContents' : [], 'id' : []} ],
	 \ 'list' : [
		\ ['annotation', 'simpleType'],
		\ {'itemType' : [], 'id' : []} ],
	 \ 'union' : [
	 	\ ['annotation', 'simpleType'],
	 	\ {'id' : [], 'memberTypes' : []} ],
	 \ 'notation' : [
	 	\ ['annotation'],
	 	\ {'name' : [], 'id' : [], 'public' : [], 'system' : []} ],
	 \ 'annotation' : [
	 	\ ['appinfo', 'documentation'],
	 	\ {} ],
	 \ 'appinfo' : [
	 	\ [],
	 	\ {'source' : [], 'id' : []} ],
	 \ 'documentation' : [
		\ [],
		\ {'source' : [], 'id' : [], 'xml' : []} ]
	\ }