xref: /titanic_50/usr/src/lib/libbsm/common/adt.xsd (revision 858a4b9997a29c40b725e606eb9bc3ac0a8c765b)
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="note" type="xs:string" minOccurs="0" maxOccurs="1"/>
60		<xs:element name="entry" type="entry_t" minOccurs="0" maxOccurs="unbounded"/>
61	</xs:sequence>
62	<xs:attribute name="id" type="xs:string" use="required"/>
63	<xs:attribute name="reorder">
64		<xs:simpleType>
65			<xs:restriction base="xs:string">
66				<xs:enumeration value="yes"/>
67				<xs:enumeration value="no"/>
68			</xs:restriction>
69		</xs:simpleType>
70	</xs:attribute>
71	<xs:attribute name="header" type="xs:unsignedShort"/>
72	<xs:attribute name="idNo" type="xs:unsignedShort"/>
73	<xs:attribute name="type" type="xs:string"/>
74	<xs:attribute name="omit">
75		<xs:simpleType>
76			<xs:restriction base="xs:string">
77				<xs:enumeration value="no"/>
78				<xs:enumeration value="always"/>
79				<xs:enumeration value="JNI"/>
80			</xs:restriction>
81		</xs:simpleType>
82	</xs:attribute>
83	<xs:attribute name="instance_of" type="xs:string"/>
84</xs:complexType>
85
86<xs:complexType name="entry_t">
87	<xs:sequence>
88		<xs:element name="debug" type="debug_t" minOccurs="0"/>
89		<xs:element name="internal">
90			<xs:complexType>
91				<xs:attribute name="token" type="xs:string" use="required"/>
92				<xs:attribute name="order" type="xs:unsignedShort"/>
93				<xs:attribute name="format" type="xs:string"/>
94			</xs:complexType>
95		</xs:element>
96		<xs:element name="external">
97			<xs:complexType>
98				<xs:attribute name="opt" use="required">
99					<xs:simpleType>
100						<xs:restriction base="xs:string">
101							<xs:enumeration value="required"/>
102							<xs:enumeration value="optional"/>
103							<xs:enumeration value="obsolete"/>
104							<xs:enumeration value="none"/>
105						</xs:restriction>
106					</xs:simpleType>
107				</xs:attribute>
108				<xs:attribute name="type" type="xs:string"/>
109			</xs:complexType>
110		</xs:element>
111		<xs:element name="comment" type="xs:string" minOccurs="0" maxOccurs="1"/>
112	</xs:sequence>
113	<xs:attribute name="id" type="xs:string" use="required"/>
114</xs:complexType>
115
116<xs:simpleType name="bool_t">
117	<xs:restriction base="xs:string">
118		<xs:enumeration value="true"/>
119		<xs:enumeration value="false"/>
120	</xs:restriction>
121</xs:simpleType>
122
123<xs:complexType name="token_t">
124	<xs:simpleContent>
125		<xs:extension base="xs:string">
126			<xs:attribute name="id" type="xs:string" use="required"/>
127			<xs:attribute name="usage" type="xs:string"/>
128		</xs:extension>
129	</xs:simpleContent>
130</xs:complexType>
131
132<xs:complexType name="msg_list_t">
133	<xs:sequence>
134		<xs:element name="msg" minOccurs="0" maxOccurs="unbounded">
135			<xs:complexType>
136				<xs:simpleContent>
137					<xs:extension base="xs:string">
138						<xs:attribute name="id" type="xs:string"/>
139					</xs:extension>
140				</xs:simpleContent>
141			</xs:complexType>
142		</xs:element>
143	</xs:sequence>
144	<xs:attribute name="id" type="xs:string" use="required"/>
145	<xs:attribute name="header" type="xs:unsignedShort" use="required"/>
146	<xs:attribute name="start" type="xs:unsignedShort"/>
147	<xs:attribute name="public" type="bool_t"/>
148	<xs:attribute name="deprecated" type="bool_t"/>
149</xs:complexType>
150
151</xs:schema>
152