bug145246_0.xsd 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?xml version="1.0" ?>
  2. <!--
  3. * $Id: giml.xsd,v 1.3 2004/06/25 09:03:53 ensonic Exp $
  4. * @file giml.xsd
  5. * @author Stefan Kost <ensonic@users.sf.net>
  6. * @date Thu Jun 24 17:28:26 MEST 2004
  7. *
  8. * @brief giml document schema definition
  9. * @ingroup gitkcore
  10. *
  11. -->
  12. <xs:schema targetNamespace="http://gitk.sourceforge.net/"
  13. xmlns="http://gitk.sourceforge.net/"
  14. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  15. xmlns:dc="http://purl.org/dc/elements/1.1/"
  16. xmlns:i18n="http://apache.org/cocoon/i18n/2.0/">
  17. <xs:annotation>
  18. <xs:documentation>
  19. This schema describes giml dialog sources
  20. </xs:documentation>
  21. </xs:annotation>
  22. <xs:import namespace="http://purl.org/dc/elements/1.1/"
  23. schemaLocation="bug145246.xsd.imp"
  24. />
  25. <!--xs:import namespace="http://apache.org/cocoon/i18n/2.0/"
  26. schemaLocation="file://./i18n.xsd"
  27. /-->
  28. <!-- foreign namespace
  29. <xs:element name="title">
  30. <xs:complexType mixed="true">
  31. <xs:choice minOccurs="0" maxOccurs="unbounded">
  32. </xs:choice>
  33. </xs:complexType>
  34. </xs:element>
  35. <xs:element name="text">
  36. <xs:complexType mixed="true"></xs:complexType>
  37. </xs:element>
  38. -->
  39. <xs:element name="option">
  40. <xs:complexType mixed="true">
  41. <xs:choice minOccurs="0" maxOccurs="unbounded"></xs:choice>
  42. </xs:complexType>
  43. </xs:element>
  44. <xs:element name="options">
  45. <xs:complexType>
  46. <xs:sequence minOccurs="0" maxOccurs="unbounded">
  47. <xs:element ref="option"/>
  48. </xs:sequence>
  49. </xs:complexType>
  50. </xs:element>
  51. <xs:element name="disabled">
  52. <xs:complexType mixed="true"></xs:complexType>
  53. </xs:element>
  54. <xs:element name="required">
  55. <xs:complexType mixed="true"></xs:complexType>
  56. </xs:element>
  57. <xs:element name="value">
  58. <xs:complexType mixed="true"></xs:complexType>
  59. </xs:element>
  60. <xs:element name="label">
  61. <xs:complexType mixed="true">
  62. <xs:choice minOccurs="0" maxOccurs="1"></xs:choice>
  63. </xs:complexType>
  64. </xs:element>
  65. <xs:element name="widget">
  66. <xs:complexType>
  67. <xs:sequence>
  68. <xs:element ref="meta" minOccurs="0"/>
  69. <xs:element ref="label" minOccurs="0"/>
  70. <xs:element ref="disabled" minOccurs="0"/>
  71. <xs:element ref="value" minOccurs="0"/>
  72. <xs:element ref="options" minOccurs="0"/>
  73. </xs:sequence>
  74. <xs:attribute name="id" type="xs:ID"/>
  75. <xs:attribute name="type" default="action">
  76. <xs:simpleType>
  77. <xs:restriction base="xs:string">
  78. <xs:enumeration value="action"/>
  79. <xs:enumeration value="characterinput"/>
  80. <xs:enumeration value="characterinput_numeric"/>
  81. <xs:enumeration value="characterinput_alphabetic"/>
  82. <xs:enumeration value="optionchoice"/>
  83. <xs:enumeration value="optionchoice_boolean"/>
  84. <xs:enumeration value="optionchoice_single"/>
  85. <xs:enumeration value="optionchoice_single_compact"/>
  86. <xs:enumeration value="label"/>
  87. </xs:restriction>
  88. </xs:simpleType>
  89. </xs:attribute>
  90. <xs:attribute name="hasFocus" default="false">
  91. <xs:simpleType>
  92. <xs:restriction base="xs:string">
  93. <xs:enumeration value="true"/>
  94. <xs:enumeration value="false"/>
  95. </xs:restriction>
  96. </xs:simpleType>
  97. </xs:attribute>
  98. </xs:complexType>
  99. </xs:element>
  100. <xs:element name="widgetgroup">
  101. <xs:complexType>
  102. <xs:sequence>
  103. <xs:element ref="meta" minOccurs="0"/>
  104. <xs:element ref="label" minOccurs="0"/>
  105. <xs:element ref="widget" minOccurs="0" maxOccurs="unbounded"/>
  106. <xs:element ref="widgetgroup" minOccurs="0" maxOccurs="unbounded"/>
  107. </xs:sequence>
  108. </xs:complexType>
  109. </xs:element>
  110. <xs:element name="dialogwidget">
  111. <xs:complexType mixed="true">
  112. <xs:attribute name="id" type="xs:ID"/>
  113. </xs:complexType>
  114. </xs:element>
  115. <xs:element name="dialogwidgets">
  116. <xs:complexType>
  117. <xs:sequence>
  118. <xs:element ref="dialogwidget" maxOccurs="unbounded"/>
  119. </xs:sequence>
  120. </xs:complexType>
  121. </xs:element>
  122. <xs:element name="meta">
  123. <xs:complexType>
  124. <xs:sequence>
  125. <xs:element ref="dc:title"/>
  126. </xs:sequence>
  127. </xs:complexType>
  128. </xs:element>
  129. <xs:element name="dialog">
  130. <xs:complexType>
  131. <xs:sequence>
  132. <xs:element ref="meta" minOccurs="0" maxOccurs="1"/>
  133. <xs:element ref="dialogwidgets" minOccurs="0" maxOccurs="1"/>
  134. <xs:element ref="widgetgroup" minOccurs="1" maxOccurs="unbounded"/>
  135. </xs:sequence>
  136. <xs:attribute name="id" type="xs:ID"/>
  137. <xs:attribute name="focus" default="main">
  138. <xs:simpleType>
  139. <xs:restriction base="xs:string">
  140. <xs:enumeration value="main"/>
  141. <xs:enumeration value="ctrl"/>
  142. </xs:restriction>
  143. </xs:simpleType>
  144. </xs:attribute>
  145. </xs:complexType>
  146. </xs:element>
  147. <xs:element name="giml">
  148. <xs:complexType>
  149. <xs:sequence>
  150. <xs:element ref="dialog" minOccurs="1" maxOccurs="1"/>
  151. </xs:sequence>
  152. <!--xs:attribute name="xmlns" type="xs:string" fixed="http://gitk.sourceforge.net/"/-->
  153. </xs:complexType>
  154. </xs:element>
  155. </xs:schema>