simple-xspec-wrapper 0.1.0-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (242) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +3 -0
  4. data/.ruby-version +1 -0
  5. data/.travis.yml +11 -0
  6. data/CODE_OF_CONDUCT.md +74 -0
  7. data/Gemfile +6 -0
  8. data/Gemfile.lock +37 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +49 -0
  11. data/Rakefile +6 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/exe/xspec +16 -0
  15. data/lib/xspec/version.rb +3 -0
  16. data/lib/xspec.rb +256 -0
  17. data/simple-xspec-wrapper.gemspec +28 -0
  18. data/spec-test.xml +1125 -0
  19. data/vendor/xspec-1.0.0/.gitignore +7 -0
  20. data/vendor/xspec-1.0.0/.travis.yml +57 -0
  21. data/vendor/xspec-1.0.0/LICENSE +21 -0
  22. data/vendor/xspec-1.0.0/README.md +26 -0
  23. data/vendor/xspec-1.0.0/appveyor.yml +77 -0
  24. data/vendor/xspec-1.0.0/bin/xspec.bat +620 -0
  25. data/vendor/xspec-1.0.0/bin/xspec.sh +403 -0
  26. data/vendor/xspec-1.0.0/build.xml +369 -0
  27. data/vendor/xspec-1.0.0/editors/emacs/README +31 -0
  28. data/vendor/xspec-1.0.0/editors/emacs/schemas.xml +6 -0
  29. data/vendor/xspec-1.0.0/editors/oxygen/.cvsignore +2 -0
  30. data/vendor/xspec-1.0.0/editors/oxygen/README +11 -0
  31. data/vendor/xspec-1.0.0/editors/oxygen/build.xml +38 -0
  32. data/vendor/xspec-1.0.0/editors/oxygen/templates/xspec.xml +17 -0
  33. data/vendor/xspec-1.0.0/editors/oxygen/xspec.framework +175 -0
  34. data/vendor/xspec-1.0.0/find-examples.xml +37 -0
  35. data/vendor/xspec-1.0.0/find-examples.xsl +615 -0
  36. data/vendor/xspec-1.0.0/graphics/3angle-down.gif +0 -0
  37. data/vendor/xspec-1.0.0/graphics/3angle-right.gif +0 -0
  38. data/vendor/xspec-1.0.0/java/com/jenitennison/xslt/tests/XSLTCoverageTraceListener.class +0 -0
  39. data/vendor/xspec-1.0.0/java/com/jenitennison/xslt/tests/XSLTCoverageTraceListener.java +209 -0
  40. data/vendor/xspec-1.0.0/src/ant/find-test-failure.xsl +17 -0
  41. data/vendor/xspec-1.0.0/src/ant/get-schematron-phase.xsl +17 -0
  42. data/vendor/xspec-1.0.0/src/ant/locate-schematron.xsl +28 -0
  43. data/vendor/xspec-1.0.0/src/ant/make-path.js +4 -0
  44. data/vendor/xspec-1.0.0/src/compiler/generate-common-tests.xsl +604 -0
  45. data/vendor/xspec-1.0.0/src/compiler/generate-query-helper.xsl +152 -0
  46. data/vendor/xspec-1.0.0/src/compiler/generate-query-tests.xsl +473 -0
  47. data/vendor/xspec-1.0.0/src/compiler/generate-query-utils.xql +263 -0
  48. data/vendor/xspec-1.0.0/src/compiler/generate-tests-helper.xsl +169 -0
  49. data/vendor/xspec-1.0.0/src/compiler/generate-tests-utils.xsl +479 -0
  50. data/vendor/xspec-1.0.0/src/compiler/generate-xspec-tests.xsl +503 -0
  51. data/vendor/xspec-1.0.0/src/harnesses/basex/basex-standalone-xquery-harness.xproc +135 -0
  52. data/vendor/xspec-1.0.0/src/harnesses/basex/basex-xquery-harness.xproc +133 -0
  53. data/vendor/xspec-1.0.0/src/harnesses/exist/exist-xquery-harness.xproc +161 -0
  54. data/vendor/xspec-1.0.0/src/harnesses/harness-lib.xpl +327 -0
  55. data/vendor/xspec-1.0.0/src/harnesses/marklogic/ml-xquery-harness.xproc +143 -0
  56. data/vendor/xspec-1.0.0/src/harnesses/saxon/saxon-xquery-harness.xproc +108 -0
  57. data/vendor/xspec-1.0.0/src/harnesses/saxon/saxon-xslt-harness.xproc +85 -0
  58. data/vendor/xspec-1.0.0/src/harnesses/zorba/zorba-xquery-harness.xproc +134 -0
  59. data/vendor/xspec-1.0.0/src/reporter/coverage-report.xsl +378 -0
  60. data/vendor/xspec-1.0.0/src/reporter/format-utils.xsl +220 -0
  61. data/vendor/xspec-1.0.0/src/reporter/format-xspec-report-folding.xsl +164 -0
  62. data/vendor/xspec-1.0.0/src/reporter/format-xspec-report.xsl +410 -0
  63. data/vendor/xspec-1.0.0/src/reporter/junit-report.xsl +93 -0
  64. data/vendor/xspec-1.0.0/src/reporter/test-report.css +469 -0
  65. data/vendor/xspec-1.0.0/src/schemas/find-examples.rnc +90 -0
  66. data/vendor/xspec-1.0.0/src/schemas/xspec.rnc +304 -0
  67. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_abstract_expand.xsl +313 -0
  68. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_dsdl_include.xsl +1519 -0
  69. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_schematron_message.xsl +64 -0
  70. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_schematron_message_xslt2.xsl +64 -0
  71. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_schematron_skeleton_for_saxon.xsl +2306 -0
  72. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_schematron_skeleton_for_xslt1.xsl +1851 -0
  73. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_svrl_for_xslt1.xsl +614 -0
  74. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/iso_svrl_for_xslt2.xsl +692 -0
  75. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/readme.txt +101 -0
  76. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-cs.xhtml +56 -0
  77. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-de.xhtml +55 -0
  78. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-en.xhtml +57 -0
  79. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-fr.xhtml +54 -0
  80. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-ja.xhtml +53 -0
  81. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/sch-messages-nl.xhtml +58 -0
  82. data/vendor/xspec-1.0.0/src/schematron/iso-schematron/schematron-skeleton-api.htm +723 -0
  83. data/vendor/xspec-1.0.0/src/schematron/sch-location-compare.xsl +139 -0
  84. data/vendor/xspec-1.0.0/src/schematron/schut-to-xspec.xsl +179 -0
  85. data/vendor/xspec-1.0.0/test/Makefile +117 -0
  86. data/vendor/xspec-1.0.0/test/README +5 -0
  87. data/vendor/xspec-1.0.0/test/catalog/xspec-160_catalog.xml +4 -0
  88. data/vendor/xspec-1.0.0/test/catalog/xspec-160_schematron.xspec +6 -0
  89. data/vendor/xspec-1.0.0/test/catalog/xspec-160_xslt.xspec +5 -0
  90. data/vendor/xspec-1.0.0/test/end-to-end/README.md +42 -0
  91. data/vendor/xspec-1.0.0/test/end-to-end/cases/.gitignore +1 -0
  92. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/.gitignore +3 -0
  93. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-50-result-norm.html +74 -0
  94. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-55-result-norm.html +112 -0
  95. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-focus-1-result-norm.html +109 -0
  96. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-function-result-norm.html +118 -0
  97. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-import-result-norm.html +163 -0
  98. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-imported-result-norm.html +95 -0
  99. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-pending-result-norm.html +123 -0
  100. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-rule-result-norm.html +109 -0
  101. data/vendor/xspec-1.0.0/test/end-to-end/cases/expected/xspec-three-dots-result-norm.html +1237 -0
  102. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-50.xsl +7 -0
  103. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-50.xspec +10 -0
  104. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-55.xsl +2 -0
  105. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-55.xspec +18 -0
  106. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-focus-1.xspec +71 -0
  107. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-function.xspec +50 -0
  108. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-import.xspec +50 -0
  109. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-imported.xspec +48 -0
  110. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-pending.xspec +89 -0
  111. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-rule.xspec +76 -0
  112. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-three-dots.xsl +49 -0
  113. data/vendor/xspec-1.0.0/test/end-to-end/cases/xspec-three-dots.xspec +527 -0
  114. data/vendor/xspec-1.0.0/test/end-to-end/generate-expected.cmd +51 -0
  115. data/vendor/xspec-1.0.0/test/end-to-end/generate-expected.sh +25 -0
  116. data/vendor/xspec-1.0.0/test/end-to-end/processor/_deserializer.xsl +53 -0
  117. data/vendor/xspec-1.0.0/test/end-to-end/processor/_normalizer.xsl +192 -0
  118. data/vendor/xspec-1.0.0/test/end-to-end/processor/_serializer.xsl +15 -0
  119. data/vendor/xspec-1.0.0/test/end-to-end/processor/_util.xsl +35 -0
  120. data/vendor/xspec-1.0.0/test/end-to-end/processor/compare.xsl +88 -0
  121. data/vendor/xspec-1.0.0/test/end-to-end/processor/normalize.xsl +28 -0
  122. data/vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.cmd +61 -0
  123. data/vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.sh +28 -0
  124. data/vendor/xspec-1.0.0/test/generate-tests-utils.xspec +636 -0
  125. data/vendor/xspec-1.0.0/test/generate-x-utils.xspec +173 -0
  126. data/vendor/xspec-1.0.0/test/generate-xspec-tests.xspec +64 -0
  127. data/vendor/xspec-1.0.0/test/run-xspec-tests.cmd +83 -0
  128. data/vendor/xspec-1.0.0/test/run-xspec-tests.sh +42 -0
  129. data/vendor/xspec-1.0.0/test/sch-location-compare.xspec +179 -0
  130. data/vendor/xspec-1.0.0/test/schematron/data/standards.xml +7 -0
  131. data/vendor/xspec-1.0.0/test/schematron/schematron-017.sch +9 -0
  132. data/vendor/xspec-1.0.0/test/schematron/schematron-018.sch +17 -0
  133. data/vendor/xspec-1.0.0/test/schematron/schematron-019.sch +13 -0
  134. data/vendor/xspec-1.0.0/test/schematron/schematron-020-01.sch +35 -0
  135. data/vendor/xspec-1.0.0/test/schematron/schematron-020.sch +32 -0
  136. data/vendor/xspec-1.0.0/test/schematron/schematron-021.sch +28 -0
  137. data/vendor/xspec-1.0.0/test/schematron/schematron-022.sch +18 -0
  138. data/vendor/xspec-1.0.0/test/schematron/schematron-xslt-compile.xsl +8 -0
  139. data/vendor/xspec-1.0.0/test/schematron/schematron-xslt-expand.xsl +8 -0
  140. data/vendor/xspec-1.0.0/test/schematron/schematron-xslt-include.xsl +8 -0
  141. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-001-in.xspec +5 -0
  142. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-001-out.xspec +7 -0
  143. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-002-in.xspec +5 -0
  144. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-002-out.xspec +7 -0
  145. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-002.sch +4 -0
  146. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-003-in.xspec +7 -0
  147. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-003-out.xspec +9 -0
  148. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-004-in.xspec +20 -0
  149. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-004-out.xspec +22 -0
  150. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-005-in.xspec +6 -0
  151. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-005-out.xspec +8 -0
  152. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-006-in.xspec +11 -0
  153. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-006-out.xspec +13 -0
  154. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-007-in.xspec +7 -0
  155. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-007-out.xspec +9 -0
  156. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-007.xml +2 -0
  157. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-008-in.xspec +9 -0
  158. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-008-out.xspec +9 -0
  159. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-009-import-in.xspec +5 -0
  160. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-009-in.xspec +6 -0
  161. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-009-out.xspec +10 -0
  162. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-010-import.xspec +5 -0
  163. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-010-in.xspec +6 -0
  164. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-010-out.xspec +8 -0
  165. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-011-in.xspec +6 -0
  166. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-011-out.xspec +8 -0
  167. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-012-01.xml +4 -0
  168. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-012-02.xml +13 -0
  169. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-012-out.xspec +81 -0
  170. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-013-in.xspec +6 -0
  171. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-013-out.xspec +8 -0
  172. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-test.sch +4 -0
  173. data/vendor/xspec-1.0.0/test/schematron/schut-to-xspec-test.sch.xsl +4 -0
  174. data/vendor/xspec-1.0.0/test/schematron-01.sch +17 -0
  175. data/vendor/xspec-1.0.0/test/schematron-01.xml +14 -0
  176. data/vendor/xspec-1.0.0/test/schematron-01.xspec +14 -0
  177. data/vendor/xspec-1.0.0/test/schematron-012.xspec +83 -0
  178. data/vendor/xspec-1.0.0/test/schematron-014-01.xml +10 -0
  179. data/vendor/xspec-1.0.0/test/schematron-014.sch +16 -0
  180. data/vendor/xspec-1.0.0/test/schematron-014.xspec +11 -0
  181. data/vendor/xspec-1.0.0/test/schematron-015.sch +16 -0
  182. data/vendor/xspec-1.0.0/test/schematron-015.xspec +11 -0
  183. data/vendor/xspec-1.0.0/test/schematron-016.sch +19 -0
  184. data/vendor/xspec-1.0.0/test/schematron-016.xspec +171 -0
  185. data/vendor/xspec-1.0.0/test/schematron-017.xspec +26 -0
  186. data/vendor/xspec-1.0.0/test/schematron-018.xspec +120 -0
  187. data/vendor/xspec-1.0.0/test/schematron-019.xspec +16 -0
  188. data/vendor/xspec-1.0.0/test/schematron-020.xspec +53 -0
  189. data/vendor/xspec-1.0.0/test/schematron-021.xspec +27 -0
  190. data/vendor/xspec-1.0.0/test/schematron-022.xspec +15 -0
  191. data/vendor/xspec-1.0.0/test/schematron-param-001.xspec +50 -0
  192. data/vendor/xspec-1.0.0/test/schut-to-xspec-012.sch +27 -0
  193. data/vendor/xspec-1.0.0/test/schut-to-xspec.xspec +85 -0
  194. data/vendor/xspec-1.0.0/test/unit-expect-xsl.xspec +28 -0
  195. data/vendor/xspec-1.0.0/test/xspec-26.xsl +19 -0
  196. data/vendor/xspec-1.0.0/test/xspec-26.xspec +17 -0
  197. data/vendor/xspec-1.0.0/test/xspec-30.xml +2 -0
  198. data/vendor/xspec-1.0.0/test/xspec-30.xsl +6 -0
  199. data/vendor/xspec-1.0.0/test/xspec-30.xspec +8 -0
  200. data/vendor/xspec-1.0.0/test/xspec-33.xsl +7 -0
  201. data/vendor/xspec-1.0.0/test/xspec-33.xspec +15 -0
  202. data/vendor/xspec-1.0.0/test/xspec-46.xsl +7 -0
  203. data/vendor/xspec-1.0.0/test/xspec-46.xspec +9 -0
  204. data/vendor/xspec-1.0.0/test/xspec-72.xsl +13 -0
  205. data/vendor/xspec-1.0.0/test/xspec-72.xspec +19 -0
  206. data/vendor/xspec-1.0.0/test/xspec-bat.cmd +757 -0
  207. data/vendor/xspec-1.0.0/test/xspec-focus-2.xspec +91 -0
  208. data/vendor/xspec-1.0.0/test/xspec-junit.xspec +78 -0
  209. data/vendor/xspec-1.0.0/test/xspec-result-naming-collision.xml +1003 -0
  210. data/vendor/xspec-1.0.0/test/xspec-result-naming-collision.xslt +10 -0
  211. data/vendor/xspec-1.0.0/test/xspec-result-naming-collision.xspec +13 -0
  212. data/vendor/xspec-1.0.0/test/xspec-tested.xql +44 -0
  213. data/vendor/xspec-1.0.0/test/xspec-tested.xsl +64 -0
  214. data/vendor/xspec-1.0.0/test/xspec-variable.xml +3 -0
  215. data/vendor/xspec-1.0.0/test/xspec-variable.xspec +58 -0
  216. data/vendor/xspec-1.0.0/test/xspec-xslt3.xsl +13 -0
  217. data/vendor/xspec-1.0.0/test/xspec-xslt3.xspec +12 -0
  218. data/vendor/xspec-1.0.0/test/xspec.bats +420 -0
  219. data/vendor/xspec-1.0.0/tutorial/escape-for-regex.xslt +40 -0
  220. data/vendor/xspec-1.0.0/tutorial/escape-for-regex.xspec +75 -0
  221. data/vendor/xspec-1.0.0/tutorial/schematron/demo-01.sch +17 -0
  222. data/vendor/xspec-1.0.0/tutorial/schematron/demo-01.xml +11 -0
  223. data/vendor/xspec-1.0.0/tutorial/schematron/demo-01.xspec +14 -0
  224. data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-PhaseA.xspec +11 -0
  225. data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-PhaseB.xspec +12 -0
  226. data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-import1.xspec +10 -0
  227. data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-import2.xspec +8 -0
  228. data/vendor/xspec-1.0.0/tutorial/schematron/demo-02-import3.xspec +10 -0
  229. data/vendor/xspec-1.0.0/tutorial/schematron/demo-02.sch +58 -0
  230. data/vendor/xspec-1.0.0/tutorial/schematron/demo-02.xml +19 -0
  231. data/vendor/xspec-1.0.0/tutorial/schematron/demo-03-doc1.xml +6 -0
  232. data/vendor/xspec-1.0.0/tutorial/schematron/demo-03-doc2.xml +7 -0
  233. data/vendor/xspec-1.0.0/tutorial/schematron/demo-03.sch +29 -0
  234. data/vendor/xspec-1.0.0/tutorial/schematron/demo-03.xspec +63 -0
  235. data/vendor/xspec-1.0.0/tutorial/schematron/demo-04.sch +20 -0
  236. data/vendor/xspec-1.0.0/tutorial/schematron/demo-04.xspec +33 -0
  237. data/vendor/xspec-1.0.0/tutorial/schematron/quickfix.sch +81 -0
  238. data/vendor/xspec-1.0.0/tutorial/xquery-tutorial.xq +8 -0
  239. data/vendor/xspec-1.0.0/tutorial/xquery-tutorial.xspec +16 -0
  240. data/vendor/xspec-1.0.0/xproject/project.xml +8 -0
  241. data/vendor/xspec-1.0.0/xproject/release-project.xsl +41 -0
  242. metadata +341 -0
@@ -0,0 +1,143 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ===================================================================== -->
3
+ <!-- File: ml-xquery-harness.xproc -->
4
+ <!-- Author: Florent Georges -->
5
+ <!-- Date: 2011-08-30 -->
6
+ <!-- URI: http://xspec.googlecode.com/ -->
7
+ <!-- Tags: -->
8
+ <!-- Copyright (c) 2011 Florent Georges (see end of file.) -->
9
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
10
+ <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="http://www.jenitennison.com/xslt/xspec" xmlns:ml="http://xmlcalabash.com/ns/extensions/marklogic" xmlns:pkg="http://expath.org/ns/pkg" pkg:import-uri="http://www.jenitennison.com/xslt/xspec/marklogic/harness/xquery.xproc" name="ml-harness" type="t:ml-harness" version="1.0">
11
+ <p:documentation>
12
+ <p>This pipeline executes an XSpec test suite on a MarkLogic instance.</p>
13
+ <p><b>Primary input:</b> A XSpec test suite document.</p>
14
+ <p><b>Primary output:</b> A formatted HTML XSpec report.</p>
15
+ <p>The XQuery library module to test must already be on the MarkLogic
16
+ instance. The instance endpoint is passed in the option 'endpoint'. The
17
+ runtime utils library (also known as generate-query-utils.xql) must also
18
+ be on the instance (its location hint, that is the 'at' clause to use) is
19
+ passed in the option 'utils-lib'. The dir where you unzipped the XSpec
20
+ archive on your filesystem is passed in the option 'xspec-home'.</p>
21
+ </p:documentation>
22
+
23
+ <p:serialization port="result" indent="true" method="xhtml" encoding="UTF-8" include-content-type="true"/>
24
+
25
+ <p:option name="xspec-home" required="true"/>
26
+ <p:option name="query-at"/>
27
+ <p:option name="utils-lib" select="'xspec/generate-query-utils.xql'"/>
28
+ <p:option name="host" required="true"/>
29
+ <!-- this must be the port of an XDBC server -->
30
+ <p:option name="port" required="true"/>
31
+ <p:option name="user" required="true"/>
32
+ <p:option name="password" required="true"/>
33
+
34
+ <p:import href="http://xmlcalabash.com/extension/steps/library-1.0.xpl"/>
35
+ <!-- TODO: Use the absolute URIs through the EXPath Packaging System. -->
36
+
37
+ <p:variable name="compiler" select="resolve-uri('src/compiler/generate-query-tests.xsl', $xspec-home)"/>
38
+ <p:variable name="formatter" select="resolve-uri('src/reporter/format-xspec-report.xsl', $xspec-home)"/>
39
+
40
+ <p:string-replace match="xsl:import/@href" name="compiler">
41
+ <p:with-option name="replace" select="concat('''', $compiler, '''')"/>
42
+ <p:input port="source">
43
+ <p:inline>
44
+ <xsl:stylesheet version="2.0">
45
+ <xsl:import href="..."/>
46
+ <xsl:template match="/">
47
+ <query>
48
+ <xsl:call-template name="t:generate-tests"/>
49
+ </query>
50
+ </xsl:template>
51
+ </xsl:stylesheet>
52
+ </p:inline>
53
+ </p:input>
54
+ </p:string-replace>
55
+
56
+ <p:choose>
57
+ <p:when test="p:value-available('query-at')">
58
+ <p:xslt name="compile">
59
+ <p:input port="source">
60
+ <p:pipe step="ml-harness" port="source"/>
61
+ </p:input>
62
+ <p:input port="stylesheet">
63
+ <p:pipe step="compiler" port="result"/>
64
+ </p:input>
65
+ <p:with-param name="query-at" select="$query-at"/>
66
+ <p:with-param name="utils-library-at" select="$utils-lib"/>
67
+ </p:xslt>
68
+ </p:when>
69
+ <p:otherwise>
70
+ <p:xslt name="compile">
71
+ <p:input port="source">
72
+ <p:pipe step="ml-harness" port="source"/>
73
+ </p:input>
74
+ <p:input port="stylesheet">
75
+ <p:pipe step="compiler" port="result"/>
76
+ </p:input>
77
+ <p:with-param name="utils-library-at" select="$utils-lib"/>
78
+ </p:xslt>
79
+ </p:otherwise>
80
+ </p:choose>
81
+
82
+ <p:escape-markup/>
83
+
84
+ <ml:adhoc-query name="run">
85
+ <p:with-option name="host" select="$host"/>
86
+ <p:with-option name="port" select="$port"/>
87
+ <p:with-option name="user" select="$user"/>
88
+ <p:with-option name="password" select="$password"/>
89
+ <p:input port="parameters">
90
+ <p:empty/>
91
+ </p:input>
92
+ </ml:adhoc-query>
93
+
94
+ <p:choose>
95
+ <p:when test="exists(/t:report)">
96
+ <p:load name="formatter">
97
+ <p:with-option name="href" select="$formatter"/>
98
+ </p:load>
99
+ <p:xslt name="format-report">
100
+ <p:input port="source">
101
+ <p:pipe step="run" port="result"/>
102
+ </p:input>
103
+ <p:input port="stylesheet">
104
+ <p:pipe step="formatter" port="result"/>
105
+ </p:input>
106
+ </p:xslt>
107
+ </p:when>
108
+ <p:otherwise>
109
+ <p:error code="t:ERR001">
110
+ <p:input port="source">
111
+ <p:pipe step="run" port="result"/>
112
+ </p:input>
113
+ </p:error>
114
+ </p:otherwise>
115
+ </p:choose>
116
+ </p:pipeline>
117
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
118
+ <!-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS COMMENT. -->
119
+ <!-- -->
120
+ <!-- Copyright (c) 2008, 2010 Jeni Tennison -->
121
+ <!-- -->
122
+ <!-- The contents of this file are subject to the MIT License (see the URI -->
123
+ <!-- http://www.opensource.org/licenses/mit-license.php for details). -->
124
+ <!-- -->
125
+ <!-- Permission is hereby granted, free of charge, to any person obtaining -->
126
+ <!-- a copy of this software and associated documentation files (the -->
127
+ <!-- "Software"), to deal in the Software without restriction, including -->
128
+ <!-- without limitation the rights to use, copy, modify, merge, publish, -->
129
+ <!-- distribute, sublicense, and/or sell copies of the Software, and to -->
130
+ <!-- permit persons to whom the Software is furnished to do so, subject to -->
131
+ <!-- the following conditions: -->
132
+ <!-- -->
133
+ <!-- The above copyright notice and this permission notice shall be -->
134
+ <!-- included in all copies or substantial portions of the Software. -->
135
+ <!-- -->
136
+ <!-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -->
137
+ <!-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -->
138
+ <!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-->
139
+ <!-- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -->
140
+ <!-- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -->
141
+ <!-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -->
142
+ <!-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->
143
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
@@ -0,0 +1,108 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ===================================================================== -->
3
+ <!-- File: saxon-xquery-harness.xproc -->
4
+ <!-- Author: Florent Georges -->
5
+ <!-- Date: 2011-08-30 -->
6
+ <!-- URI: http://xspec.googlecode.com/ -->
7
+ <!-- Tags: -->
8
+ <!-- Copyright (c) 2011 Florent Georges (see end of file.) -->
9
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
10
+
11
+
12
+ <p:pipeline xmlns:p="http://www.w3.org/ns/xproc"
13
+ xmlns:c="http://www.w3.org/ns/xproc-step"
14
+ xmlns:t="http://www.jenitennison.com/xslt/xspec"
15
+ xmlns:pkg="http://expath.org/ns/pkg"
16
+ pkg:import-uri="http://www.jenitennison.com/xslt/xspec/saxon/harness/xquery.xproc"
17
+ name="saxon-xquery-harness"
18
+ type="t:saxon-xquery-harness"
19
+ version="1.0">
20
+
21
+ <p:documentation>
22
+ <p>This pipeline executes an XSpec test suite with the Saxon embedded in Calabash.</p>
23
+ <p><b>Primary input:</b> A XSpec test suite document.</p>
24
+ <p><b>Primary output:</b> A formatted HTML XSpec report.</p>
25
+ <p>The dir where you unzipped the XSpec archive on your filesystem is passed
26
+ in the option 'xspec-home'.</p>
27
+ </p:documentation>
28
+
29
+ <p:serialization port="result" indent="true"/>
30
+
31
+ <p:import href="../harness-lib.xpl"/>
32
+
33
+ <t:parameters name="params"/>
34
+
35
+ <p:group>
36
+ <p:variable name="xspec-home" select="
37
+ /c:param-set/c:param[@name eq 'xspec-home']/@value">
38
+ <p:pipe step="params" port="parameters"/>
39
+ </p:variable>
40
+ <p:variable name="utils-library-at" select="
41
+ /c:param-set/c:param[@name eq 'utils-library-at']/@value">
42
+ <p:pipe step="params" port="parameters"/>
43
+ </p:variable>
44
+
45
+ <!-- either no at location hint, or resolved from xspec-home if packaging not supported -->
46
+ <p:variable name="utils-lib" select="
47
+ if ( $utils-library-at ) then
48
+ $utils-library-at
49
+ else if ( $xspec-home ) then
50
+ resolve-uri('src/compiler/generate-query-utils.xql', $xspec-home)
51
+ else
52
+ ''"/>
53
+
54
+ <!-- compile the suite into a query -->
55
+ <t:compile-xquery>
56
+ <p:with-param name="utils-library-at" select="$utils-lib"/>
57
+ </t:compile-xquery>
58
+
59
+ <!-- escape the query as text -->
60
+ <p:escape-markup name="escape"/>
61
+
62
+ <!-- run it on saxon -->
63
+ <p:xquery name="run">
64
+ <p:input port="source">
65
+ <p:empty/>
66
+ </p:input>
67
+ <p:input port="query">
68
+ <p:pipe step="escape" port="result"/>
69
+ </p:input>
70
+ <p:input port="parameters">
71
+ <p:empty/>
72
+ </p:input>
73
+ </p:xquery>
74
+
75
+ <!-- format the report -->
76
+ <t:format-report/>
77
+ </p:group>
78
+
79
+ </p:pipeline>
80
+
81
+
82
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
83
+ <!-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS COMMENT. -->
84
+ <!-- -->
85
+ <!-- Copyright (c) 2011 Florent Georges -->
86
+ <!-- -->
87
+ <!-- The contents of this file are subject to the MIT License (see the URI -->
88
+ <!-- http://www.opensource.org/licenses/mit-license.php for details). -->
89
+ <!-- -->
90
+ <!-- Permission is hereby granted, free of charge, to any person obtaining -->
91
+ <!-- a copy of this software and associated documentation files (the -->
92
+ <!-- "Software"), to deal in the Software without restriction, including -->
93
+ <!-- without limitation the rights to use, copy, modify, merge, publish, -->
94
+ <!-- distribute, sublicense, and/or sell copies of the Software, and to -->
95
+ <!-- permit persons to whom the Software is furnished to do so, subject to -->
96
+ <!-- the following conditions: -->
97
+ <!-- -->
98
+ <!-- The above copyright notice and this permission notice shall be -->
99
+ <!-- included in all copies or substantial portions of the Software. -->
100
+ <!-- -->
101
+ <!-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -->
102
+ <!-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -->
103
+ <!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-->
104
+ <!-- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -->
105
+ <!-- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -->
106
+ <!-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -->
107
+ <!-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->
108
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
@@ -0,0 +1,85 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ===================================================================== -->
3
+ <!-- File: saxon-xslt-harness.xproc -->
4
+ <!-- Author: Florent Georges -->
5
+ <!-- Date: 2011-08-30 -->
6
+ <!-- URI: http://xspec.googlecode.com/ -->
7
+ <!-- Tags: -->
8
+ <!-- Copyright (c) 2011 Florent Georges (see end of file.) -->
9
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
10
+
11
+
12
+ <p:pipeline xmlns:p="http://www.w3.org/ns/xproc"
13
+ xmlns:c="http://www.w3.org/ns/xproc-step"
14
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
15
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
16
+ xmlns:t="http://www.jenitennison.com/xslt/xspec"
17
+ xmlns:pkg="http://expath.org/ns/pkg"
18
+ pkg:import-uri="http://www.jenitennison.com/xslt/xspec/saxon/harness/xslt.xproc"
19
+ name="saxon-xslt-harness"
20
+ type="t:saxon-xslt-harness"
21
+ version="1.0">
22
+
23
+ <p:documentation>
24
+ <p>This pipeline executes an XSpec test suite with the Saxon embedded in Calabash.</p>
25
+ <p><b>Primary input:</b> A XSpec test suite document.</p>
26
+ <p><b>Primary output:</b> A formatted HTML XSpec report.</p>
27
+ </p:documentation>
28
+
29
+ <p:serialization port="result" indent="true" method="xhtml"
30
+ encoding="UTF-8" include-content-type="true"/>
31
+
32
+ <p:import href="../harness-lib.xpl"/>
33
+
34
+ <!-- TODO: Does not work yet... -->
35
+ <!--t:ensure-input/-->
36
+
37
+ <!-- compile the suite into a stylesheet -->
38
+ <t:compile-xslt name="compile"/>
39
+
40
+ <!-- run it on saxon -->
41
+ <p:xslt name="run" template-name="t:main">
42
+ <p:input port="source">
43
+ <p:empty/>
44
+ </p:input>
45
+ <p:input port="stylesheet">
46
+ <p:pipe step="compile" port="result"/>
47
+ </p:input>
48
+ <p:input port="parameters">
49
+ <p:empty/>
50
+ </p:input>
51
+ </p:xslt>
52
+
53
+ <!-- format the report -->
54
+ <t:format-report/>
55
+
56
+ </p:pipeline>
57
+
58
+
59
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
60
+ <!-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS COMMENT. -->
61
+ <!-- -->
62
+ <!-- Copyright (c) 2011 Florent Georges -->
63
+ <!-- -->
64
+ <!-- The contents of this file are subject to the MIT License (see the URI -->
65
+ <!-- http://www.opensource.org/licenses/mit-license.php for details). -->
66
+ <!-- -->
67
+ <!-- Permission is hereby granted, free of charge, to any person obtaining -->
68
+ <!-- a copy of this software and associated documentation files (the -->
69
+ <!-- "Software"), to deal in the Software without restriction, including -->
70
+ <!-- without limitation the rights to use, copy, modify, merge, publish, -->
71
+ <!-- distribute, sublicense, and/or sell copies of the Software, and to -->
72
+ <!-- permit persons to whom the Software is furnished to do so, subject to -->
73
+ <!-- the following conditions: -->
74
+ <!-- -->
75
+ <!-- The above copyright notice and this permission notice shall be -->
76
+ <!-- included in all copies or substantial portions of the Software. -->
77
+ <!-- -->
78
+ <!-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -->
79
+ <!-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -->
80
+ <!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-->
81
+ <!-- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -->
82
+ <!-- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -->
83
+ <!-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -->
84
+ <!-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->
85
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
@@ -0,0 +1,134 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- ===================================================================== -->
3
+ <!-- File: zorba-xquery-harness.xproc -->
4
+ <!-- Author: Florent Georges -->
5
+ <!-- Date: 2011-09-18 -->
6
+ <!-- URI: http://xspec.googlecode.com/ -->
7
+ <!-- Tags: -->
8
+ <!-- Copyright (c) 2011 Florent Georges (see end of file.) -->
9
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
10
+ <p:pipeline xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:cx="http://xmlcalabash.com/ns/extensions" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="http://www.jenitennison.com/xslt/xspec" xmlns:pkg="http://expath.org/ns/pkg" pkg:import-uri="http://www.jenitennison.com/xslt/xspec/zorba/harness/xquery.xproc" name="zorba-xquery-harness" type="t:zorba-xquery-harness" version="1.0">
11
+ <p:documentation>
12
+ <p>This pipeline executes an XSpec test suite with Zorba.</p>
13
+ <p><b>Primary input:</b> A XSpec test suite document.</p>
14
+ <p><b>Primary output:</b> A formatted HTML XSpec report.</p>
15
+ <p>The dir where you unzipped the XSpec archive on your filesystem is passed
16
+ in the option 'xspec-home'. The compiled test suite (the XQuery file to be
17
+ actually evaluated) is saved on the filesystem to be passed to Zorba. The
18
+ name of this file is passed in the option 'compiled-file' (it defaults to a
19
+ file in /tmp). It relies on a script called 'zorba' being available in the
20
+ system's $PATH.</p>
21
+ </p:documentation>
22
+
23
+ <p:serialization port="result" indent="true" method="xhtml" encoding="UTF-8" include-content-type="true"/>
24
+
25
+ <p:option name="xspec-home" required="true"/>
26
+ <!-- TODO: Use a robust way to get a tmp file name from the OS... -->
27
+ <p:option name="compiled-file" select="'file:///tmp/xspec-zorba-compiled-suite.xq'"/>
28
+
29
+ <!-- TODO: Use the absolute URIs through the EXPath Packaging System. -->
30
+ <p:variable name="compiler" select="resolve-uri('src/compiler/generate-query-tests.xsl', $xspec-home)"/>
31
+ <p:variable name="formatter" select="resolve-uri('src/reporter/format-xspec-report.xsl', $xspec-home)"/>
32
+ <!-- Saxon's resolve-uri() returns file:/ with only one slashes, which Zorba
33
+ does not understand. -->
34
+ <p:variable name="utils-tmp" select="resolve-uri('src/compiler/generate-query-utils.xql', $xspec-home)"/>
35
+ <p:variable name="utils-lib" select="if ( starts-with($utils-tmp, 'file:/') and not(starts-with($utils-tmp, 'file:///')) ) then concat('file:///', substring($utils-tmp, 7)) else $utils-tmp"/>
36
+
37
+ <p:string-replace match="xsl:import/@href" name="compiler">
38
+ <p:with-option name="replace" select="concat('''', $compiler, '''')"/>
39
+ <p:input port="source">
40
+ <p:inline>
41
+ <xsl:stylesheet version="2.0">
42
+ <xsl:import href="..."/>
43
+ <xsl:template match="/">
44
+ <c:query>
45
+ <xsl:call-template name="t:generate-tests"/>
46
+ </c:query>
47
+ </xsl:template>
48
+ </xsl:stylesheet>
49
+ </p:inline>
50
+ </p:input>
51
+ </p:string-replace>
52
+
53
+ <p:xslt name="compile">
54
+ <p:input port="source">
55
+ <p:pipe step="zorba-xquery-harness" port="source"/>
56
+ </p:input>
57
+ <p:input port="stylesheet">
58
+ <p:pipe step="compiler" port="result"/>
59
+ </p:input>
60
+ <p:with-param name="utils-library-at" select="$utils-lib"/>
61
+ </p:xslt>
62
+
63
+ <p:escape-markup name="escape"/>
64
+
65
+ <p:store method="text" name="store">
66
+ <p:with-option name="href" select="$compiled-file"/>
67
+ </p:store>
68
+
69
+ <!-- rely on a script 'zorba' being in the PATH -->
70
+ <p:exec command="zorba" name="run" cx:depends-on="store">
71
+ <!-- Zorba does not accept a URI, only a file path, so we have to remove
72
+ the 'file:' part. TODO: Report it to the Zorba mailing list. -->
73
+ <p:with-option name="args" select="concat('-f -q ', substring-after($compiled-file, ':'))"/>
74
+
75
+ <p:input port="source">
76
+ <p:empty/>
77
+ </p:input>
78
+ </p:exec>
79
+
80
+ <p:choose>
81
+ <p:when test="exists(/c:result/t:report)">
82
+ <p:load name="formatter">
83
+ <p:with-option name="href" select="$formatter"/>
84
+ </p:load>
85
+ <p:unwrap name="unwrap" match="/c:result">
86
+ <p:input port="source">
87
+ <p:pipe step="run" port="result"/>
88
+ </p:input>
89
+ </p:unwrap>
90
+ <p:xslt name="format-report">
91
+ <p:input port="source">
92
+ <p:pipe step="unwrap" port="result"/>
93
+ </p:input>
94
+ <p:input port="stylesheet">
95
+ <p:pipe step="formatter" port="result"/>
96
+ </p:input>
97
+ </p:xslt>
98
+ </p:when>
99
+ <p:otherwise>
100
+ <p:error code="t:ERR001">
101
+ <p:input port="source">
102
+ <p:pipe step="run" port="result"/>
103
+ </p:input>
104
+ </p:error>
105
+ </p:otherwise>
106
+ </p:choose>
107
+ </p:pipeline>
108
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
109
+ <!-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS COMMENT. -->
110
+ <!-- -->
111
+ <!-- Copyright (c) 2008, 2010 Jeni Tennison -->
112
+ <!-- -->
113
+ <!-- The contents of this file are subject to the MIT License (see the URI -->
114
+ <!-- http://www.opensource.org/licenses/mit-license.php for details). -->
115
+ <!-- -->
116
+ <!-- Permission is hereby granted, free of charge, to any person obtaining -->
117
+ <!-- a copy of this software and associated documentation files (the -->
118
+ <!-- "Software"), to deal in the Software without restriction, including -->
119
+ <!-- without limitation the rights to use, copy, modify, merge, publish, -->
120
+ <!-- distribute, sublicense, and/or sell copies of the Software, and to -->
121
+ <!-- permit persons to whom the Software is furnished to do so, subject to -->
122
+ <!-- the following conditions: -->
123
+ <!-- -->
124
+ <!-- The above copyright notice and this permission notice shall be -->
125
+ <!-- included in all copies or substantial portions of the Software. -->
126
+ <!-- -->
127
+ <!-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -->
128
+ <!-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -->
129
+ <!-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.-->
130
+ <!-- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -->
131
+ <!-- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -->
132
+ <!-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -->
133
+ <!-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -->
134
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->