xref: /titanic_51/usr/src/lib/libbsm/common/adt.xsd (revision 193974072f41a843678abf5f61979c748687e66b)
1<?xml version="1.0"?>
2<!--
3 CDDL HEADER START
4
5 The contents of this file are subject to the terms of the
6 Common Development and Distribution License (the "License").
7 You may not use this file except in compliance with the License.
8
9 You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 or http://www.opensolaris.org/os/licensing.
11 See the License for the specific language governing permissions
12 and limitations under the License.
13
14 When distributing Covered Code, include this CDDL HEADER in each
15 file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 If applicable, add the following below this CDDL HEADER, with the
17 fields enclosed by brackets "[]" replaced with your own identifying
18 information: Portions Copyright [yyyy] [name of copyright owner]
19
20 CDDL HEADER END
21
22Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23Use is subject to license terms.
24
25  ident	"%Z%%M%	%I%	%E% SMI"
26-->
27
28<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
29
30<xs:element name="specification">
31	<xs:complexType>
32		<xs:sequence minOccurs="0" maxOccurs="unbounded">
33			<xs:element name="debug" type="debug_t" minOccurs="0" maxOccurs="unbounded"/>
34			<xs:element name="event" type="event_t" minOccurs="0" maxOccurs="unbounded"/>
35			<xs:element name="token" type="token_t" minOccurs="0" maxOccurs="unbounded"/>
36			<xs:element name="msg_list" type="msg_list_t" minOccurs="0" maxOccurs="unbounded"/>
37		</xs:sequence>
38	</xs:complexType>
39</xs:element>
40
41<xs:complexType name="debug_t">
42	<xs:attribute name="set" use="required">
43		<xs:simpleType>
44			<xs:restriction base="xs:string">
45				<xs:enumeration value="on"/>
46				<xs:enumeration value="off"/>
47			</xs:restriction>
48		</xs:simpleType>
49	</xs:attribute>
50</xs:complexType>
51
52<xs:complexType name="event_t">
53	<xs:sequence minOccurs="0">
54		<xs:element name="debug" type="debug_t" minOccurs="0"/>
55		<xs:element name="altname" type="xs:string" minOccurs="0"/>
56		<xs:element name="title" type="xs:string" minOccurs="0" maxOccurs="1"/>
57		<xs:element name="program" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
58		<xs:element name="see" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
59		<xs:element name="entry" type="entry_t" minOccurs="0" maxOccurs="unbounded"/>
60	</xs:sequence>
61	<xs:attribute name="id" type="xs:string" use="required"/>
62	<xs:attribute name="reorder">
63		<xs:simpleType>
64			<xs:restriction base="xs:string">
65				<xs:enumeration value="yes"/>
66				<xs:enumeration value="no"/>
67			</xs:restriction>
68		</xs:simpleType>
69	</xs:attribute>
70	<xs:attribute name="header" type="xs:unsignedShort"/>
71	<xs:attribute name="idNo" type="xs:unsignedShort"/>
72	<xs:attribute name="type" type="xs:string"/>
73	<xs:attribute name="omit">
74		<xs:simpleType>
75			<xs:restriction base="xs:string">
76				<xs:enumeration value="no"/>
77				<xs:enumeration value="always"/>
78				<xs:enumeration value="JNI"/>
79			</xs:restriction>
80		</xs:simpleType>
81	</xs:attribute>
82	<xs:attribute name="instance_of" type="xs:string"/>
83</xs:complexType>
84
85<xs:complexType name="entry_t">
86	<xs:sequence>
87		<xs:element name="debug" type="debug_t" minOccurs="0"/>
88		<xs:element name="internal">
89			<xs:complexType>
90				<xs:attribute name="token" type="xs:string" use="required"/>
91				<xs:attribute name="order" type="xs:unsignedShort"/>
92				<xs:attribute name="format" type="xs:string"/>
93			</xs:complexType>
94		</xs:element>
95		<xs:element name="external">
96			<xs:complexType>
97				<xs:attribute name="opt" use="required">
98					<xs:simpleType>
99						<xs:restriction base="xs:string">
100							<xs:enumeration value="required"/>
101							<xs:enumeration value="optional"/>
102							<xs:enumeration value="obsolete"/>
103							<xs:enumeration value="none"/>
104						</xs:restriction>
105					</xs:simpleType>
106				</xs:attribute>
107				<xs:attribute name="type" type="xs:string"/>
108			</xs:complexType>
109		</xs:element>
110		<xs:element name="comment" type="xs:string" minOccurs="0" maxOccurs="1"/>
111	</xs:sequence>
112	<xs:attribute name="id" type="xs:string" use="required"/>
113</xs:complexType>
114
115<xs:simpleType name="bool_t">
116	<xs:restriction base="xs:string">
117		<xs:enumeration value="true"/>
118		<xs:enumeration value="false"/>
119	</xs:restriction>
120</xs:simpleType>
121
122<xs:complexType name="token_t">
123	<xs:simpleContent>
124		<xs:extension base="xs:string">
125			<xs:attribute name="id" type="xs:string" use="required"/>
126			<xs:attribute name="usage" type="xs:string"/>
127		</xs:extension>
128	</xs:simpleContent>
129</xs:complexType>
130
131<xs:complexType name="msg_list_t">
132	<xs:sequence>
133		<xs:element name="msg" minOccurs="0" maxOccurs="unbounded">
134			<xs:complexType>
135				<xs:simpleContent>
136					<xs:extension base="xs:string">
137						<xs:attribute name="id" type="xs:string"/>
138					</xs:extension>
139				</xs:simpleContent>
140			</xs:complexType>
141		</xs:element>
142	</xs:sequence>
143	<xs:attribute name="id" type="xs:string" use="required"/>
144	<xs:attribute name="header" type="xs:unsignedShort" use="required"/>
145	<xs:attribute name="start" type="xs:unsignedShort"/>
146	<xs:attribute name="public" type="bool_t"/>
147	<xs:attribute name="deprecated" type="bool_t"/>
148</xs:complexType>
149
150</xs:schema>
151