PageRenderTime 56ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/Source/Sandcastle/Schemas/Authoring/xlink.xsd

#
XML Schema | 219 lines | 217 code | 2 blank | 0 comment | 0 complexity | bb28b42b5c6d49205fa7b8ea4a193609 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <schema xmlns="http://www.w3.org/2001/XMLSchema"
  3. xmlns:xlink="http://www.w3.org/1999/xlink"
  4. xmlns:doc="http://ddue.schemas.microsoft.com/authoring/internal"
  5. targetNamespace="http://www.w3.org/1999/xlink"
  6. elementFormDefault="qualified"
  7. attributeFormDefault="unqualified"
  8. >
  9. <!-- schema abstract -->
  10. <annotation>
  11. <documentation>
  12. This schema definition provides an XLink implementation for any schema.
  13. </documentation>
  14. </annotation>
  15. <!-- include and import declarations -->
  16. <include schemaLocation="standardCodes.xsd"/>
  17. <!-- element declarations -->
  18. <element name="simpleLink" type="xlink:simpleLinkType"/>
  19. <element name="extendedLink" type="xlink:extendedLinkType"/>
  20. <!-- attribute declarations -->
  21. <!-- attribute name="xmlns:xlink" type="string" fixed="http://www.w3.org/1999/xlink"/ -->
  22. <attribute name="type" type="xlink:basicLinkType"/>
  23. <attribute name="href" type="xlink:hrefType"/>
  24. <attribute name="role" type="xlink:roleType"/>
  25. <attribute name="arcrole" type="xlink:arcroleType"/>
  26. <attribute name="title" type="xlink:simpleTitleType"/>
  27. <attribute name="show" type="xlink:showType"/>
  28. <attribute name="actuate" type="xlink:actuateType"/>
  29. <attribute name="label" type="xlink:labelType"/>
  30. <attribute name="from" type="xlink:fromType"/>
  31. <attribute name="to" type="xlink:toType"/>
  32. <!-- attributeGroup definitions -->
  33. <attributeGroup name="simpleLinkGroup">
  34. <attribute ref="xlink:type" fixed="simple"/>
  35. <attribute ref="xlink:href"/>
  36. <attribute ref="xlink:role"/>
  37. <attribute ref="xlink:arcrole"/>
  38. <attribute ref="xlink:title"/>
  39. <attribute ref="xlink:show"/>
  40. <attribute ref="xlink:actuate"/>
  41. </attributeGroup>
  42. <attributeGroup name="extendedLinkGroup">
  43. <attribute ref="xlink:type" fixed="extended"/>
  44. <attribute ref="xlink:role"/>
  45. <attribute ref="xlink:title"/>
  46. <!-- attribute name="xmlns:xlink" type="string" fixed="http://www.w3.org/1999/xlink"/ -->
  47. </attributeGroup>
  48. <attributeGroup name="locatorGroup">
  49. <attribute ref="xlink:type" fixed="locator"/>
  50. <attribute ref="xlink:href" use="required"/>
  51. <attribute ref="xlink:role"/>
  52. <attribute ref="xlink:title"/>
  53. <attribute ref="xlink:label"/>
  54. </attributeGroup>
  55. <attributeGroup name="arcGroup">
  56. <attribute ref="xlink:type" fixed="arc"/>
  57. <attribute ref="xlink:arcrole"/>
  58. <attribute ref="xlink:title"/>
  59. <attribute ref="xlink:show"/>
  60. <attribute ref="xlink:actuate"/>
  61. <attribute ref="xlink:from"/>
  62. <attribute ref="xlink:to"/>
  63. </attributeGroup>
  64. <attributeGroup name="resourceGroup">
  65. <attribute ref="xlink:type" fixed="resource"/>
  66. <attribute ref="xlink:role"/>
  67. <attribute ref="xlink:title"/>
  68. <attribute ref="xlink:label"/>
  69. </attributeGroup>
  70. <attributeGroup name="titleGroup">
  71. <attribute ref="xlink:type" fixed="title"/>
  72. <attribute name="lang" type="xlink:isoLanguageCode"/>
  73. </attributeGroup>
  74. <!-- complexType definitions -->
  75. <complexType name="simpleLinkType" final="restriction" mixed="true">
  76. <annotation>
  77. <documentation>Offers a shorthand syntax for a common kind of link, an outbound link with exactly two participating resources.</documentation>
  78. </annotation>
  79. <attributeGroup ref="xlink:simpleLinkGroup"/>
  80. </complexType>
  81. <complexType name="extendedLinkType" final="restriction" mixed="true">
  82. <annotation>
  83. <documentation>Offers full XLink functionality, such as inbound and third-party arcs, as well as links that have arbitrary numbers of participating resources. As a result, the structure of complex links can be fairly complex, including elements for pointing to remote resources, elements for containing local resources, elements for specifying arc traversal rules, and elements for specifying human-readable resource and arc titles.</documentation>
  84. </annotation>
  85. <choice minOccurs="0" maxOccurs="unbounded">
  86. <element name="title" type="xlink:titleType"/>
  87. <element name="resource" type="xlink:resourceType"/>
  88. <element name="locator" type="xlink:locatorType"/>
  89. <element name="arc" type="xlink:arcType"/>
  90. </choice>
  91. <attributeGroup ref="xlink:extendedLinkGroup"/>
  92. </complexType>
  93. <complexType name="locatorType">
  94. <annotation>
  95. <documentation>Address the remote resources participating in the link</documentation>
  96. </annotation>
  97. <sequence>
  98. <element name="title" type="xlink:titleType" minOccurs="0" maxOccurs="unbounded"/>
  99. </sequence>
  100. <attributeGroup ref="xlink:locatorGroup"/>
  101. </complexType>
  102. <complexType name="arcType">
  103. <annotation>
  104. <documentation>Provide traversal rules among the link's participating resources.</documentation>
  105. </annotation>
  106. <sequence>
  107. <element name="title" type="xlink:titleType" minOccurs="0" maxOccurs="unbounded"/>
  108. </sequence>
  109. <attributeGroup ref="xlink:arcGroup"/>
  110. </complexType>
  111. <complexType name="resourceType" mixed="true">
  112. <annotation>
  113. <documentation>Supply local resources that participate in the link.</documentation>
  114. </annotation>
  115. <attributeGroup ref="xlink:resourceGroup"/>
  116. </complexType>
  117. <complexType name="titleType" mixed="true">
  118. <annotation>
  119. <documentation>Provide human-readable labels for the link.</documentation>
  120. </annotation>
  121. <attributeGroup ref="xlink:titleGroup"/>
  122. </complexType>
  123. <!-- simpleType definitions -->
  124. <simpleType name="basicLinkType" final="#all">
  125. <annotation>
  126. <documentation>XLink conformant elements must contain a type attribute. This is it's definition.</documentation>
  127. </annotation>
  128. <restriction base="token">
  129. <enumeration value="simple"/>
  130. <enumeration value="extended"/>
  131. <enumeration value="locator"/>
  132. <enumeration value="arc"/>
  133. <enumeration value="resource"/>
  134. <enumeration value="title"/>
  135. <enumeration value="none"/>
  136. </restriction>
  137. </simpleType>
  138. <simpleType name="hrefType">
  139. <annotation>
  140. <documentation/>
  141. </annotation>
  142. <restriction base="anyURI"/>
  143. </simpleType>
  144. <!-- ##### attribute name="role" type="anyURI" ##### tokenS? multi? ##### -->
  145. <simpleType name="roleType">
  146. <annotation>
  147. <documentation/>
  148. </annotation>
  149. <restriction base="token">
  150. <enumeration value="transform"/>
  151. <enumeration value="passThrough"/>
  152. </restriction>
  153. </simpleType>
  154. <!-- ##### attribute name="arcrole" type="anyURI" ##### -->
  155. <simpleType name="arcroleType">
  156. <annotation>
  157. <documentation>arcroleType definition. Value MUST be a URI reference as defined in IETF RFC 2396, except if the URI shceme used is allowed to have absolute and relative forms, the URI portion MUST be absolute. The URI reference identifys some resource that describes the intended property. When no value is supplied, no particular role value is to be inferred</documentation>
  158. </annotation>
  159. <restriction base="string"/>
  160. </simpleType>
  161. <simpleType name="simpleTitleType">
  162. <annotation>
  163. <documentation>titleType definition. Used to describe the meaning of a link or resource in a human-readable fashion, along the same lines as a ROLE or ARCROLE attribute (see roleType and arcroleType definitions). A value is optional; if a value is supplied, it SHOULD contain a string that describes the resource or link. The value MAY be used to make titles available to applications used by visually impaired users, or to create a table of links, or to present help text that appears when a user lets a mouse pointer hover over a starting resource.</documentation>
  164. </annotation>
  165. <restriction base="string"/>
  166. </simpleType>
  167. <simpleType name="showType">
  168. <annotation>
  169. <documentation>Defines possible values for show attribute.</documentation>
  170. <documentation>new: Application SHOULD load the resource in a new window, frame, pane, or other relevant presentation context.</documentation>
  171. <documentation>replace: Application SHOULD load the resource in the same window, frame, pane, or other relevant presentation context in which the starting resource was loaded.</documentation>
  172. <documentation>embed: Application SHOULD load the resource presentation in place of the presentation of the starting resource.</documentation>
  173. <documentation>other: Behavior of the application is unconstrained by the XLink spec. The application SHOULD look for other markup present in the link to determine the appropriate behavior.</documentation>
  174. <documentation>none: Behavior of the application is unconstrained by the XLink spec. No other markup is present to help the application determine the appropriate behavior.</documentation>
  175. </annotation>
  176. <restriction base="token">
  177. <enumeration value="new"/>
  178. <enumeration value="replace"/>
  179. <enumeration value="embed"/>
  180. <enumeration value="other"/>
  181. <enumeration value="none"/>
  182. </restriction>
  183. </simpleType>
  184. <simpleType name="actuateType">
  185. <annotation>
  186. <documentation>Defines possible values for actuate attribute</documentation>
  187. <documentation>onLoad: Application SHOULD traverse to the ending resource immediately on loading the starting resource.</documentation>
  188. <documentation>onRequest: Application SHOULD traverse from the starting resource to the ending resource only on a post-loading event triggered for the purpose of traversal. An example might be when a user clicks on the presentation of the starting resource, or a software module finishes a countdown that precedes a redirect.</documentation>
  189. <documentation>other: The behavior of the application traversing to the ending resource is unconstrained by this specification. The application SHOULD look for other markup present in the link to determine the appropriate behaviour.</documentation>
  190. <documentation>none: The behavior of the application traversing to the ending resource is unconstrained by this specification. No other markup is present to help the application determine the appropriate behavior.</documentation>
  191. </annotation>
  192. <restriction base="token">
  193. <enumeration value="onLoad"/>
  194. <enumeration value="onRequest"/>
  195. <enumeration value="other"/>
  196. <enumeration value="none"/>
  197. </restriction>
  198. </simpleType>
  199. <simpleType name="labelType">
  200. <annotation>
  201. <documentation>labelType definition. If a 'from' or 'to' attribute value is supplied, it MUST correspond to the same value for some 'label' attribute on a 'locator-' or 'resource-' type element that appears as a direct child inside the same extended-type element as does the arc-type element. See also 'from' and 'to' type definitions.</documentation>
  202. </annotation>
  203. <restriction base="token"/>
  204. </simpleType>
  205. <simpleType name="fromType">
  206. <annotation>
  207. <documentation>fromType definition. If a value is supplied, it MUST correspond to the same value for some 'label' attribute on a 'locator-' or 'resource-' type element that appears as a direct child inside the same extended-type element as does the arc-type element. See also 'label' and 'to' type definitions.</documentation>
  208. </annotation>
  209. <restriction base="token"/>
  210. </simpleType>
  211. <simpleType name="toType">
  212. <annotation>
  213. <documentation>toType definition. If a value is supplied, it MUST correspond to the same value for some 'label' attribute on a 'locator-' or 'resource-' type element that appears as a direct child inside the same extended-type element as does the arc-type element. See also 'label' and 'from' type definitions.</documentation>
  214. </annotation>
  215. <restriction base="token"/>
  216. </simpleType>
  217. </schema>