You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

testsuite.dtd 6.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. @(#)testcases.dtd 1.0 12/18/00
  4. Mary Brady, NIST
  5. DTD describing a database of XSL tests.
  6. Revised 2001 Jan 10 (Paul Grosso) - augmented by XSL FO SG:
  7. - add to the TEST element an XSL attribute to point to
  8. the XSL stylesheet and rename the URI attribute to XML
  9. - add to the TEST element a PROPERTY attribute to
  10. indicate when a given property is being tested
  11. - add to the TEST element a LEVEL attribute to indicate
  12. which conformance level is being tested
  13. - add to the TEST element a SPECPTR attribute
  14. (of URI type) to allow referring to relevant sections
  15. of the XSL spec.
  16. - add to the TEST element an ERRATUM attribute
  17. (of CDATA type) to allow recording of an erratum
  18. name/number that this test is meant to test.
  19. - add to INTERACTION attribute value list MULTIPLE
  20. and give it a default of NONE
  21. - add to FO attribute value list MULTIPLE
  22. - make the BASE attribute on TESTCASES #IMPLIED,
  23. since it's not unreasonable for all the URI-type
  24. attributes to be absolute
  25. - add to the TEST element a RESULTS attribute to point
  26. to, say, the PDF demonstrating the expected output
  27. Revised 2001 Jan 10 (Paul Grosso) - added TESTRESULT structure
  28. Revised 2001 Jan 24 (Paul Grosso) - lowercased names (though
  29. not in comments, since that helps highlight them)
  30. 2001-02-19 (AntennaHouse) added repeatable-page-master-alternatives
  31. conditional-page-master-reference region-before
  32. region-after region-start region-end static-content
  33. inline inline-container.
  34. -->
  35. <!ENTITY % URI "CDATA">
  36. <!ENTITY % text "(#PCDATA | em | b | a)*">
  37. <!--
  38. The root element of the whole collection is TESTSUITE. While not
  39. very different from TESTCASES, it must be distinguished due to
  40. improper processing by IE5.
  41. -->
  42. <!ELEMENT testsuite ( testcases+ )>
  43. <!ATTLIST testsuite
  44. profile CDATA #IMPLIED
  45. >
  46. <!--
  47. The root element of a collection should be "TESTCASES". It serves to
  48. group a set of tests to be collectively identified as follows:
  49. * PROFILE - name of test profile
  50. * BASE - base directory in which tests for this collection reside;
  51. allows tests to be found in many application instances.
  52. -->
  53. <!ELEMENT testcases (test | testresult | testcases)*>
  54. <!ATTLIST testcases
  55. profile CDATA #IMPLIED
  56. base CDATA #IMPLIED
  57. >
  58. <!--
  59. The body of each TEST element is its description as well as a
  60. discussion of the expected results. The following attributes
  61. must be specified for each test as follows:
  62. * ID - unique test identifier
  63. * INTERACTION - used later for categorizing tests
  64. * FO - formatting object that is tested
  65. * XML - relative uri that points to the XML of the actual test
  66. * XSL - relative uri that points to the XSL of the actual test
  67. Other optional attributes are:
  68. * PROPERTY - indicates the property being tested
  69. * LEVEL - indicates which conformance level is being tested
  70. * SPECPTR - pointer to relevant part of the XSL spec
  71. * ERRATUM-LBL - label/name of the erratum being tested
  72. * ERRATUM-PTR - pointer to the erratum being tested
  73. * RESULTS - pointer to a display of the expected results
  74. -->
  75. <!ELEMENT test %text;>
  76. <!ATTLIST test
  77. id ID #REQUIRED
  78. interaction (none|area|writing|spacing|collapsing|multiple) "none"
  79. fo (root|page-sequence|page-sequence-master|single-page-master-reference|
  80. repeatable-page-master-reference|repeatable-page-master-alternatives
  81. |layout-master-set|conditional-page-master-reference|simple-page-master|
  82. region-body|region-before|region-after|region-start|
  83. region-end|static-content|inline | inline-container |
  84. declarations|flow|block|block-container|bidi-override|
  85. character|initial-property-set|external-graphic|leader|page-number|
  86. table-and-caption|table|table-column|table-header|table-body|table-row|
  87. table-cell|list-block|list-item|list-item-body|list-item-label|multi-case|
  88. wrapper|multiple) #REQUIRED
  89. xml %URI; #REQUIRED
  90. xsl %URI; #REQUIRED
  91. property CDATA #IMPLIED
  92. level (basic|extended|complete) "basic"
  93. specptr %URI; #IMPLIED
  94. erratum-lbl CDATA #IMPLIED
  95. erratum-ptr %URI; #IMPLIED
  96. results %URI; #IMPLIED
  97. >
  98. <!--
  99. Really basic HTML font tweaks, to support highlighting
  100. some aspects of test descriptions ...
  101. EM == emphasis (e.g. italics, fun colors)
  102. B == bold
  103. -->
  104. <!ELEMENT em (#PCDATA | b)*>
  105. <!ELEMENT b (#PCDATA | em)*>
  106. <!--
  107. We also allow for hyperlinks in text (e.g., to include
  108. references to supporting evidence within SPECPROBLEM and
  109. TESTPROBLEM).
  110. -->
  111. <!ELEMENT a (#PCDATA | b | em)*>
  112. <!ATTLIST a
  113. href %URI; #REQUIRED
  114. >
  115. <!--
  116. The TESTRESULT element is used to record test results.
  117. It has a required ID attribute which identifies the TEST.
  118. It has a required AGREEMENT attribute that indicates whether
  119. the results are in full agreement with the expected
  120. results as described in the TEST case or not.
  121. The textual contents of the TESTRESULT element should describe
  122. the results of the test and any issues or further information.
  123. The target of the optional RESULTS attribute could be either some
  124. PDF showing the results or any other arbitrary resource
  125. describing/discussing the results.
  126. The optional FUTURESUPPORT attribute is used to indicate
  127. expected future support of the feature tested by this
  128. test case.
  129. The optional SPECPROBLEM attribute indicates if there is
  130. any ambiguity or other problem found in the spec that relates
  131. to this test. Especially if the results weren't as expected
  132. because of a misinterpretation of the spec, this should be
  133. documented here. Details/discussion should appear in the
  134. textual contents of the TESTRESULT element.
  135. The optional TESTPROBLEM attribute indicates if there is
  136. any issue with the TEST case and the expected results it
  137. suggests. Especially if the results of the test differ
  138. from that given as "expected" by the test case but are,
  139. in fact, believed to be the correct results, this should
  140. be documented here. Details/discussion should appear in the
  141. textual contents of the TESTRESULT element.
  142. -->
  143. <!ELEMENT testresult %text;>
  144. <!ATTLIST testresult
  145. id CDATA #REQUIRED
  146. agreement (full|issues) #REQUIRED
  147. results %URI; #IMPLIED
  148. futuresupport (full|partial|none) #IMPLIED
  149. specproblem (yes|no) "no"
  150. testproblem (yes|no) "no"
  151. >