schemas/occi.xsd - cords in CompatibleOne - Gitorious

#

eg. 'wrapper', 'category:python' or '"document database"'

- Blob contents
- Blob history
- Raw blob data

This file looks large and may slow your browser down if we attempt to syntax highlight it, so we are showing it without any pretty colors. Highlight it anyway.

1

    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" >

2

      <xsd:annotation>

3

        <xsd:documentation xml:lang="en" >

4

          OCCI model Description Schema

5

          Version 1

6

          Aligned with the OCCI Core Document

7

        </xsd:documentation>

8

      </xsd:annotation>

9

10

      <xsd:element name="schema" type="occiSchema" />

11

12

      <xsd:complexType name="occiSchema" >

13

        <xsd:sequence>

14

          <xsd:element name="model" type="occiExtension" />

15

        </xsd:sequence>

16

      </xsd:complexType>

17

18

      <xsd:element name="extension" type="occiExtensionType" />

19

20

      <xsd:complexType name="occiExtensionType" >

21

        <xsd:sequence>

22

          <xsd:element ref="xsd:annotation" minOccurs="0" maxOccurs="1" />

23

          <xsd:element name="kind" type="occiKindType" minOccurs="0" maxOccurs="unbounded" />

24

          <xsd:element name="mixin" type="occiMixinType" minOccurs="0" maxOccurs="unbounded" />

25

        </xsd:sequence>

26

        <xsd:attribute name="name" type="xsd:string" />

27

        <xsd:attribute name="version" type="xsd:string" />

28

        <xsd:attribute name="scheme" type="xsd:anyURI" use="required" >

29

          <xsd:annotation>

30

    	<xsd:documentation xml:lang="en" >

31

    	  'scheme' attribute is only required for 'extension'

32

    	  elements. If not specified in child elements, 'scheme'

33

    	  attribute is parent element's one.

34

    	</xsd:documentation>

35

    	<xsd:documentation xml:lang="en" >

36

    	  'scheme' attribute can be a fully qualified url or can start

37

    	  with '.'.  In the latter case, '.' must be replaced with

38

    	  parent element's 'scheme' attribute value to get the full

39

    	  scheme url.

40

    	</xsd:documentation>

41

          </xsd:annotation>

42

        </xsd:attribute>

43

      </xsd:complexType>

44

45

      <xsd:complexType name="occiCategoryType" >

46

        <xsd:sequence>

47

          <xsd:element ref="xsd:annotation" minOccurs="0" maxOccurs="1" />

48

          <xsd:element name="relations" type="occiRelationsType" >

49

    	<xsd:annotation>

50

    	  <xsd:documentation xml:lang="en" >

51

    	    Relations can be described with either a list of relations

52

    	    through this element, either the rel attributes. In most

53

    	    case, a category has a single relation, hence the

54

    	    attribute.

55

    	  </xsd:documentation>

56

    	</xsd:annotation>

57

          </xsd:element>

58

          <xsd:element name="attributes" type="occiAttributesType" />

59

          <xsd:element name="actions" type="occiActionsType" />

60

        </xsd:sequence>

61

        <xsd:attribute name="scheme" type="xsd:anyURI" />

62

        <xsd:attribute name="term" type="xsd:string" use="required" />

63

        <xsd:attribute name="title" type="xsd:string" />

64

        <xsd:attribute name="use" default="required" >

65

          <xsd:annotation>

66

    	<xsd:documentation xml:lang="en" >

67

    	  If category is 'required', any implementation MUST support this category.

68

    	  If category is 'optional', implementations SHOULD support this category.

69

    	</xsd:documentation>

70

          </xsd:annotation>

71

          <xsd:simpleType>

72

    	<xsd:restriction base="xsd:string" >

73

     	  <xsd:enumeration name="required" />

74

    	  <xsd:enumeration name="optional" />

75

    	</xsd:restriction>

76

          </xsd:simpleType>

77

        </xsd:attribute>

78

      </xsd:complexType>

79

80

      <xsd:complexType name="occiRelationsType" >

81

        <xsd:sequence>

82

          <xsd:element name="relation" type="occiCategoryType" />

83

        </xsd:sequence>

84

      </xsd:complexType>

85

86

      <xsd:complexType name="occiAttributesType" >

87

        <xsd:sequence>

88

          <xsd:element name="attribute" type="occiAttributeType" />

89

        </xsd:sequence>

90

      </xsd:complexType>

91

92

      <xsd:copmplexType name="occiActionsType" >

93

        <xsd:sequence>

94

          <xsd:element name="action" type="occiActionType" />

95

        </xsd:sequence>

96

      </xsd:copmplexType>

97

98

      <xsd:complexType name="occiRelatedType" >

99

100

      </xsd:complexType>

101

102

      <xsd:complexType name="occiKindType" >

103

        <xsd:extension base="occiCategoryType" >

104

          <xsd:attribute name="class" type="xsd:string" fixed="kind" />

105

        </xsd:extension>

106

      </xsd:complexType>

107

108

      <xsd:complexType name="occiMixinType" >

109

        <xsd:extension base="occiCategoryType" >

110

          <xsd:attribute name="class" type="xsd:string" fixed="mixin" />

111

        </xsd:extension>

112

      </xsd:complexType>

113

114

      <xsd:complexType name="occiAttributeType" >

115

        <xsd:complexContent>

116

          <xsd:extension base="xsd:attribute" >

117

    	<xsd:attribute name="immutable" type="xsd:boolean" default="false" />

118

          </xsd:extension>

119

        </xsd:complexContent>

120

      </xsd:complexType>

121

122

      <xsd:complexType name="occiActionType" >

123

        <xsd:sequence>

124

          <xsd:element ref="xsd:annotation" minOccurs="0" maxOccurs="1" />

125

          <xsd:element name="attribute" type="occiAttributeType" />

126

        </xsd:sequence>

127

        <xsd:attribute name="scheme" type="xsd:anyURI" />

128

        <xsd:attribute name="term" type="xsd:string" use="required" />

129

        <xsd:attribute name="title" type="xsd:string" />

130

      </xsd:complexType>

131

    </xsd:schema>