xlinks.xsd 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- File: xlinks.xsd -->
  3. <schema targetNamespace="http://www.w3.org/1999/xlink"
  4. xmlns:xlink="http://www.w3.org/1999/xlink"
  5. xmlns="http://www.w3.org/2001/XMLSchema"
  6. version="2.0a">
  7. <annotation>
  8. <appinfo>xlinks.xsd v2.0a 2001-06</appinfo>
  9. <documentation xml:lang="en">
  10. This schema provides the XLink attributes for general use.
  11. Modified to comply with http://www.w3.org/2001/XMLSchema.
  12. </documentation>
  13. </annotation>
  14. <!-- ==============================================================
  15. global declarations
  16. =============================================================== -->
  17. <!-- locator attribute -->
  18. <attribute name="href" type="anyURI"/>
  19. <!-- semantic attributes -->
  20. <attribute name="role" type="anyURI"/>
  21. <attribute name="arcrole" type="anyURI"/>
  22. <attribute name="title" type="string"/>
  23. <!-- behavior attributes -->
  24. <attribute name="show">
  25. <annotation>
  26. <documentation>
  27. The 'show' attribute is used to communicate the desired presentation
  28. of the ending resource on traversal from the starting resource; it's
  29. value should be treated as follows:
  30. new - load ending resource in a new window, frame, pane, or other
  31. presentation context
  32. replace - load the resource in the same window, frame, pane, or
  33. other presentation context
  34. embed - load ending resource in place of the presentation of the
  35. starting resource
  36. other - behavior is unconstrained; examine other markup in the
  37. link for hints
  38. none - behavior is unconstrained
  39. </documentation>
  40. </annotation>
  41. <simpleType>
  42. <restriction base="string">
  43. <enumeration value="new"/>
  44. <enumeration value="replace"/>
  45. <enumeration value="embed"/>
  46. <enumeration value="other"/>
  47. <enumeration value="none"/>
  48. </restriction>
  49. </simpleType>
  50. </attribute>
  51. <attribute name="actuate">
  52. <annotation>
  53. <documentation>
  54. The 'actuate' attribute is used to communicate the desired timing
  55. of traversal from the starting resource to the ending resource;
  56. it's value should be treated as follows:
  57. onLoad - traverse to the ending resource immediately on loading
  58. the starting resource
  59. onRequest - traverse from the starting resource to the ending
  60. resource only on a post-loading event triggered for
  61. this purpose
  62. other - behavior is unconstrained; examine other markup in link
  63. for hints
  64. none - behavior is unconstrained
  65. </documentation>
  66. </annotation>
  67. <simpleType>
  68. <restriction base="string">
  69. <enumeration value="onLoad"/>
  70. <enumeration value="onRequest"/>
  71. <enumeration value="other"/>
  72. <enumeration value="none"/>
  73. </restriction>
  74. </simpleType>
  75. </attribute>
  76. <!-- traversal attributes -->
  77. <attribute name="label" type="string"/>
  78. <attribute name="from" type="string"/>
  79. <attribute name="to" type="string"/>
  80. <!-- ==============================================================
  81. Attributes grouped by XLink type, as specified in the W3C
  82. Proposed Recommendation (dated 2000-12-20)
  83. =================================================================== -->
  84. <attributeGroup name="simpleLink">
  85. <attribute name="type" type="string" use="required" fixed="simple" form="qualified"/>
  86. <attribute ref="xlink:href" use="optional"/>
  87. <attribute ref="xlink:role" use="optional"/>
  88. <attribute ref="xlink:arcrole" use="optional"/>
  89. <attribute ref="xlink:title" use="optional"/>
  90. <attribute ref="xlink:show" use="optional"/>
  91. <attribute ref="xlink:actuate" use="optional"/>
  92. </attributeGroup>
  93. <attributeGroup name="extendedLink">
  94. <attribute name="type" type="string" use="required" fixed="extended" form="qualified"/>
  95. <attribute ref="xlink:role" use="optional"/>
  96. <attribute ref="xlink:title" use="optional"/>
  97. </attributeGroup>
  98. <attributeGroup name="locatorLink">
  99. <attribute name="type" type="string" use="required" fixed="locator" form="qualified"/>
  100. <attribute ref="xlink:href" use="required"/>
  101. <attribute ref="xlink:role" use="optional"/>
  102. <attribute ref="xlink:title" use="optional"/>
  103. <attribute ref="xlink:label" use="optional"/>
  104. </attributeGroup>
  105. <attributeGroup name="arcLink">
  106. <attribute name="type" type="string" use="required" fixed="arc" form="qualified"/>
  107. <attribute ref="xlink:arcrole" use="optional"/>
  108. <attribute ref="xlink:title" use="optional"/>
  109. <attribute ref="xlink:show" use="optional"/>
  110. <attribute ref="xlink:actuate" use="optional"/>
  111. <attribute ref="xlink:from" use="optional"/>
  112. <attribute ref="xlink:to" use="optional"/>
  113. </attributeGroup>
  114. <attributeGroup name="resourceLink">
  115. <attribute name="type" type="string" use="required" fixed="resource" form="qualified"/>
  116. <attribute ref="xlink:role" use="optional"/>
  117. <attribute ref="xlink:title" use="optional"/>
  118. <attribute ref="xlink:label" use="optional"/>
  119. </attributeGroup>
  120. <attributeGroup name="titleLink">
  121. <attribute name="type" type="string" use="required" fixed="title" form="qualified"/>
  122. </attributeGroup>
  123. <attributeGroup name="emptyLink">
  124. <attribute name="type" type="string" use="optional" fixed="none" form="qualified"/>
  125. </attributeGroup>
  126. </schema>