-
Notifications
You must be signed in to change notification settings - Fork 0
/
metaadms.xsd
144 lines (135 loc) · 4.86 KB
/
metaadms.xsd
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
138
139
140
141
142
143
144
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is part of adms - http://sourceforge.net/projects/mot-adms.
adms is a code generator for the Verilog-AMS language.
Copyright (C) 2002-2012 Laurent Lemaitre <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<!--
This dtd describes the basic data structures used by adms classes
It is used to check the validy of file http://mot-adms/sourceforge.net/xml-files/adms.xml
You can try using xmllint: xmllint adms.xml -noout -postvalid -noblanks
-->
<!-- $Id: metaadms.xsd 505 2007-01-23 11:17:43Z r29173 $ -->
<!--
$Log$
Revision 1.1 2005/05/03 07:43:32 r29173
schema version of dtd's
Revision 1.5 2005/03/17 08:26:28 r29173
migration to adms-2.x.x: move all href from absolute to relative values
Revision 1.4 2005/02/25 12:49:35 r29173
migration to adms-2.x.x: renamed admst transforms
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="adms">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="element"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="element">
<xs:complexType>
<xs:sequence>
<xs:element ref="uid"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="scalar"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="list"/>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="element"/>
</xs:sequence>
<xs:attributeGroup ref="attlist.element"/>
</xs:complexType>
</xs:element>
<xs:element name="uid">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="scalar"/>
</xs:sequence>
<xs:attributeGroup ref="attlist.uid"/>
</xs:complexType>
</xs:element>
<xs:element name="scalar">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="attribute"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="list">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" ref="attribute"/>
</xs:sequence>
<xs:attributeGroup ref="attlist.list"/>
</xs:complexType>
</xs:element>
<xs:element name="attribute">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded" ref="evalue"/>
</xs:sequence>
<xs:attributeGroup ref="attlist.attribute"/>
</xs:complexType>
</xs:element>
<xs:element name="reference">
<xs:complexType/>
</xs:element>
<xs:element name="evalue">
<xs:complexType>
<xs:attributeGroup ref="attlist.evalue"/>
</xs:complexType>
</xs:element>
<xs:attributeGroup name="attlist.uid">
<xs:attribute name="format" use="required"/>
</xs:attributeGroup>
<xs:attributeGroup name="attlist.element">
<xs:attribute name="name" use="required"/>
<xs:attribute name="info" use="required"/>
</xs:attributeGroup>
<xs:attributeGroup name="attlist.list">
<xs:attribute name="onduplicate" default="ignore">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="ignore"/>
<xs:enumeration value="abort"/>
<xs:enumeration value="ignore-abort"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:attributeGroup>
<xs:attributeGroup name="attlist.attribute">
<xs:attribute name="name" use="required"/>
<xs:attribute name="datatypefamily" default="basictype">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="basictype"/>
<xs:enumeration value="reference"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="datatypename" use="required"/>
<xs:attribute name="default"/>
<xs:attribute name="required" default="yes">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="yes"/>
<xs:enumeration value="no"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="onrewrite"/>
<xs:attribute name="info" use="required"/>
</xs:attributeGroup>
<xs:attributeGroup name="attlist.evalue">
<xs:attribute name="name" use="required"/>
<xs:attribute name="info" use="required"/>
</xs:attributeGroup>
</xs:schema>