Skip to content
This repository
Browse code

level3 test files

  • Loading branch information...
commit 4de3e0d110b33f84904d46fbd1e61a1e6ff0248e 1 parent 1fe441e
Elijah Insua authored

Showing 86 changed files with 6,633 additions and 0 deletions. Show diff stats Hide diff stats

  1. +28 0 test/level3/core/files/Yes
  2. BIN  test/level3/core/files/back.gif
  3. +27 0 test/level3/core/files/barfoo.svg
  4. +25 0 test/level3/core/files/barfoo.xhtml
  5. +25 0 test/level3/core/files/barfoo.xml
  6. +37 0 test/level3/core/files/barfoo_base.svg
  7. +29 0 test/level3/core/files/barfoo_base.xhtml
  8. +29 0 test/level3/core/files/barfoo_base.xml
  9. +28 0 test/level3/core/files/barfoo_nodefaultns.svg
  10. +26 0 test/level3/core/files/barfoo_nodefaultns.xhtml
  11. +26 0 test/level3/core/files/barfoo_nodefaultns.xml
  12. +28 0 test/level3/core/files/barfoo_standalone_no.svg
  13. +26 0 test/level3/core/files/barfoo_standalone_no.xhtml
  14. +26 0 test/level3/core/files/barfoo_standalone_no.xml
  15. +24 0 test/level3/core/files/barfoo_standalone_yes.svg
  16. +26 0 test/level3/core/files/barfoo_standalone_yes.xhtml
  17. +26 0 test/level3/core/files/barfoo_standalone_yes.xml
  18. BIN  test/level3/core/files/barfoo_utf16.svg
  19. BIN  test/level3/core/files/barfoo_utf16.xhtml
  20. BIN  test/level3/core/files/barfoo_utf16.xml
  21. +30 0 test/level3/core/files/barfoo_utf8.svg
  22. +28 0 test/level3/core/files/barfoo_utf8.xhtml
  23. +28 0 test/level3/core/files/barfoo_utf8.xml
  24. BIN  test/level3/core/files/blank.gif
  25. +17 0 test/level3/core/files/canonicalform01.svg
  26. +14 0 test/level3/core/files/canonicalform01.xhtml
  27. +14 0 test/level3/core/files/canonicalform01.xml
  28. +14 0 test/level3/core/files/canonicalform02.svg
  29. +11 0 test/level3/core/files/canonicalform02.xhtml
  30. +11 0 test/level3/core/files/canonicalform02.xml
  31. +22 0 test/level3/core/files/canonicalform03.svg
  32. +18 0 test/level3/core/files/canonicalform03.xhtml
  33. +18 0 test/level3/core/files/canonicalform03.xml
  34. +15 0 test/level3/core/files/canonicalform04.svg
  35. +13 0 test/level3/core/files/canonicalform04.xhtml
  36. +13 0 test/level3/core/files/canonicalform04.xml
  37. +15 0 test/level3/core/files/canonicalform05.svg
  38. +13 0 test/level3/core/files/canonicalform05.xhtml
  39. +13 0 test/level3/core/files/canonicalform05.xml
  40. +89 0 test/level3/core/files/datatype_normalization.svg
  41. +60 0 test/level3/core/files/datatype_normalization.svg.xsd
  42. +90 0 test/level3/core/files/datatype_normalization.xml
  43. +212 0 test/level3/core/files/datatype_normalization.xsd
  44. +45 0 test/level3/core/files/datatype_normalization2.svg
  45. +60 0 test/level3/core/files/datatype_normalization2.svg.xsd
  46. +33 0 test/level3/core/files/datatype_normalization2.xhtml
  47. +33 0 test/level3/core/files/datatype_normalization2.xml
  48. +99 0 test/level3/core/files/datatype_normalization2.xsd
  49. +31 0 test/level3/core/files/external_barfoo.svg
  50. +33 0 test/level3/core/files/external_barfoo.xhtml
  51. +33 0 test/level3/core/files/external_barfoo.xml
  52. BIN  test/level3/core/files/external_foo.ent
  53. +1 0  test/level3/core/files/external_foobr.ent
  54. +1 0  test/level3/core/files/external_widget.ent
  55. +10 0 test/level3/core/files/hc_nodtdstaff.html.1
  56. +10 0 test/level3/core/files/hc_nodtdstaff.svg
  57. +10 0 test/level3/core/files/hc_nodtdstaff.xhtml
  58. +10 0 test/level3/core/files/hc_nodtdstaff.xml
  59. +87 0 test/level3/core/files/hc_staff.svg
  60. +60 0 test/level3/core/files/hc_staff.svg.xsd
  61. +73 0 test/level3/core/files/hc_staff.xhtml
  62. +73 0 test/level3/core/files/hc_staff.xml
  63. +250 0 test/level3/core/files/hc_staff.xsd
  64. BIN  test/level3/core/files/image2.gif
  65. +87 0 test/level3/core/files/index.html.1
  66. +739 0 test/level3/core/files/index.html.2
  67. +87 0 test/level3/core/files/index.html?C=D;O=A
  68. +87 0 test/level3/core/files/index.html?C=M;O=A
  69. +87 0 test/level3/core/files/index.html?C=N;O=D
  70. +87 0 test/level3/core/files/index.html?C=S;O=A
  71. +67 0 test/level3/core/files/robots.txt
  72. 0  test/level3/core/files/svgtest.js
  73. 0  test/level3/core/files/svgunit.js
  74. BIN  test/level3/core/files/text.gif
  75. +29 0 test/level3/core/files/typeinfo.svg
  76. +60 0 test/level3/core/files/typeinfo.svg.xsd
  77. +18 0 test/level3/core/files/typeinfo.xhtml
  78. +18 0 test/level3/core/files/typeinfo.xml
  79. +107 0 test/level3/core/files/typeinfo.xsd
  80. BIN  test/level3/core/files/unknown.gif
  81. +196 0 test/level3/core/files/xhtml-lat1.ent
  82. +80 0 test/level3/core/files/xhtml-special.ent
  83. +237 0 test/level3/core/files/xhtml-symbol.ent
  84. +1,235 0 test/level3/core/files/xhtml1-frameset.dtd
  85. +65 0 test/level3/core/files/xhtml1-strict.dtd
  86. +1,201 0 test/level3/core/files/xhtml1-transitional.dtd
28 test/level3/core/files/Yes
... ... @@ -0,0 +1,28 @@
  1 +<!--
  2 +
  3 +Copyright (c) 2001-2004 World Wide Web Consortium,
  4 +(Massachusetts Institute of Technology, Institut National de
  5 +Recherche en Informatique et en Automatique, Keio University). All
  6 +Rights Reserved. This program is distributed under the W3C's Software
  7 +Intellectual Property License. This program is distributed in the
  8 +hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  9 +the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  10 +PURPOSE.
  11 +
  12 +See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  13 +
  14 +-->
  15 +
  16 +<!--
  17 +
  18 +xsi:noNamespaceSchemaLocation="Yes" appears in hc_staff.xml
  19 +but it was not anticipated that "Yes" would be resolved since
  20 +there were no elements without a namespace. However, since
  21 +at least one processor does attempt to load "Yes", this file
  22 +is here to satisfy that request.
  23 +
  24 +-->
  25 +
  26 +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  27 + <xsd:element name="bogus" type="xsd:string"/>
  28 +</xsd:schema>
BIN  test/level3/core/files/back.gif
27 test/level3/core/files/barfoo.svg
... ... @@ -0,0 +1,27 @@
  1 +<!DOCTYPE svg [
  2 +<!ENTITY ent1 'foo'>
  3 +<!ENTITY ent2 'foo<br/>'>
  4 +<!ELEMENT svg (rect,script,body)>
  5 +<!ATTLIST svg xmlns CDATA #IMPLIED>
  6 +<!ELEMENT rect EMPTY>
  7 +<!ATTLIST rect
  8 + x CDATA #REQUIRED
  9 + y CDATA #REQUIRED
  10 + width CDATA #REQUIRED
  11 + height CDATA #REQUIRED
  12 + fill CDATA #REQUIRED>
  13 +<!ELEMENT p (#PCDATA|br)*>
  14 +<!ELEMENT body (p)>
  15 +<!ATTLIST body xmlns CDATA #IMPLIED>
  16 +<!ELEMENT br EMPTY>
  17 +<!ELEMENT script (#PCDATA)>
  18 +<!ATTLIST script type CDATA #IMPLIED>
  19 +<!ENTITY svgunit SYSTEM "svgunit.js">
  20 +<!ENTITY svgtest SYSTEM "svgtest.js">
  21 +]>
  22 +<svg xmlns="http://www.w3.org/2000/svg">
  23 +<rect x="0" y="0" width="100" height="100" fill="blue"/><script type="text/ecmascript">&svgtest;&svgunit;</script>
  24 +<body xmlns='http://www.w3.org/1999/xhtml'>
  25 +<p>bar</p>
  26 +</body>
  27 +</svg>
25 test/level3/core/files/barfoo.xhtml
... ... @@ -0,0 +1,25 @@
  1 +<!DOCTYPE html [
  2 +<!ENTITY ent1 'foo'>
  3 +<!ENTITY ent2 'foo<br/>'>
  4 +<!ELEMENT html (head, body)>
  5 +<!ATTLIST html xmlns CDATA #IMPLIED>
  6 +<!ELEMENT head (title,script*)>
  7 +<!ELEMENT script (#PCDATA)>
  8 +<!ATTLIST script
  9 + src CDATA #IMPLIED
  10 + type CDATA #IMPLIED
  11 + charset CDATA #IMPLIED>
  12 +<!ELEMENT title (#PCDATA)>
  13 +<!ELEMENT body (p)>
  14 +<!ATTLIST body onload CDATA #IMPLIED>
  15 +<!ELEMENT p (#PCDATA|br)*>
  16 +<!ELEMENT br EMPTY>
  17 +]>
  18 +<html xmlns='http://www.w3.org/1999/xhtml'>
  19 +<head>
  20 +<title>replaceWholeText sample</title>
  21 +</head>
  22 +<body onload="parent.loadComplete()">
  23 +<p>bar</p>
  24 +</body>
  25 +</html>
25 test/level3/core/files/barfoo.xml
... ... @@ -0,0 +1,25 @@
  1 +<!DOCTYPE html [
  2 +<!ENTITY ent1 'foo'>
  3 +<!ENTITY ent2 'foo<br/>'>
  4 +<!ELEMENT html (head, body)>
  5 +<!ATTLIST html xmlns CDATA #IMPLIED>
  6 +<!ELEMENT head (title,script*)>
  7 +<!ELEMENT script (#PCDATA)>
  8 +<!ATTLIST script
  9 + src CDATA #IMPLIED
  10 + type CDATA #IMPLIED
  11 + charset CDATA #IMPLIED>
  12 +<!ELEMENT title (#PCDATA)>
  13 +<!ELEMENT body (p)>
  14 +<!ATTLIST body onload CDATA #IMPLIED>
  15 +<!ELEMENT p (#PCDATA|br)*>
  16 +<!ELEMENT br EMPTY>
  17 +]>
  18 +<html xmlns='http://www.w3.org/1999/xhtml'>
  19 +<head>
  20 +<title>replaceWholeText sample</title>
  21 +</head>
  22 +<body onload="parent.loadComplete()">
  23 +<p>bar</p>
  24 +</body>
  25 +</html>
37 test/level3/core/files/barfoo_base.svg
... ... @@ -0,0 +1,37 @@
  1 +<!DOCTYPE svg [
  2 +<!ENTITY ent1 'foo'>
  3 +<!ENTITY ent2 'foo<br/>'>
  4 +<!ELEMENT svg (rect,script,head,body)>
  5 +<!ATTLIST svg xmlns CDATA #IMPLIED
  6 + xml:base CDATA #IMPLIED>
  7 +<!ELEMENT rect EMPTY>
  8 +<!ATTLIST rect
  9 + x CDATA #REQUIRED
  10 + y CDATA #REQUIRED
  11 + width CDATA #REQUIRED
  12 + height CDATA #REQUIRED
  13 + fill CDATA #REQUIRED>
  14 +<!ELEMENT body (p)>
  15 +<!ATTLIST body
  16 + xml:base CDATA #IMPLIED
  17 + xmlns CDATA #IMPLIED
  18 + id ID #IMPLIED>
  19 +<!ELEMENT p (#PCDATA|br)*>
  20 +<!ELEMENT br EMPTY>
  21 +<!ELEMENT head (title)>
  22 +<!ATTLIST head xmlns CDATA #IMPLIED>
  23 +<!ELEMENT title (#PCDATA)>
  24 +<!ELEMENT script (#PCDATA)>
  25 +<!ATTLIST script type CDATA #IMPLIED>
  26 +<!ENTITY svgunit SYSTEM "svgunit.js">
  27 +<!ENTITY svgtest SYSTEM "svgtest.js">
  28 +]>
  29 +<svg xmlns="http://www.w3.org/2000/svg" xml:base="http://www.w3.org/DOM/L3Test">
  30 +<rect x="0" y="0" width="100" height="100" fill="blue"/><script type="text/ecmascript">&svgtest;&svgunit;</script>
  31 +<head xmlns='http://www.w3.org/1999/xhtml'>
  32 +<title>XML Base sample</title>
  33 +</head>
  34 +<body xmlns='http://www.w3.org/1999/xhtml' xml:base="http://www.w3.org/DOM/EmployeeID" id="body">
  35 +<p>bar</p><!-- keep comment adjacent to p -->
  36 +</body>
  37 +</svg>
29 test/level3/core/files/barfoo_base.xhtml
... ... @@ -0,0 +1,29 @@
  1 +<!DOCTYPE html [
  2 +<!ENTITY ent1 'foo'>
  3 +<!ENTITY ent2 'foo<br/>'>
  4 +<!ELEMENT html (head, body)>
  5 +<!ATTLIST html
  6 + xmlns CDATA #IMPLIED
  7 + xml:base CDATA #IMPLIED>
  8 +<!ELEMENT head (title,script*)>
  9 +<!ELEMENT title (#PCDATA)>
  10 +<!ELEMENT script (#PCDATA)>
  11 +<!ATTLIST script
  12 + src CDATA #IMPLIED
  13 + type CDATA #IMPLIED
  14 + charset CDATA #IMPLIED>
  15 +<!ELEMENT body (p)>
  16 +<!ATTLIST body xml:base CDATA #IMPLIED
  17 + id ID #IMPLIED
  18 + onload CDATA #IMPLIED>
  19 +<!ELEMENT p (#PCDATA|br)*>
  20 +<!ELEMENT br EMPTY>
  21 +]>
  22 +<html xmlns='http://www.w3.org/1999/xhtml' xml:base="http://www.w3.org/DOM/L3Test">
  23 +<head>
  24 +<title>XML Base sample</title>
  25 +</head>
  26 +<body xml:base="http://www.w3.org/DOM/EmployeeID" id="body">
  27 +<p>bar</p><!-- keep comment adjacent to p -->
  28 +</body>
  29 +</html>
29 test/level3/core/files/barfoo_base.xml
... ... @@ -0,0 +1,29 @@
  1 +<!DOCTYPE html [
  2 +<!ENTITY ent1 'foo'>
  3 +<!ENTITY ent2 'foo<br/>'>
  4 +<!ELEMENT html (head, body)>
  5 +<!ATTLIST html
  6 + xmlns CDATA #IMPLIED
  7 + xml:base CDATA #IMPLIED>
  8 +<!ELEMENT head (title,script*)>
  9 +<!ELEMENT title (#PCDATA)>
  10 +<!ELEMENT script (#PCDATA)>
  11 +<!ATTLIST script
  12 + src CDATA #IMPLIED
  13 + type CDATA #IMPLIED
  14 + charset CDATA #IMPLIED>
  15 +<!ELEMENT body (p)>
  16 +<!ATTLIST body xml:base CDATA #IMPLIED
  17 + id ID #IMPLIED
  18 + onload CDATA #IMPLIED>
  19 +<!ELEMENT p (#PCDATA|br)*>
  20 +<!ELEMENT br EMPTY>
  21 +]>
  22 +<html xmlns='http://www.w3.org/1999/xhtml' xml:base="http://www.w3.org/DOM/L3Test">
  23 +<head>
  24 +<title>XML Base sample</title>
  25 +</head>
  26 +<body xml:base="http://www.w3.org/DOM/EmployeeID" id="body">
  27 +<p>bar</p><!-- keep comment adjacent to p -->
  28 +</body>
  29 +</html>
28 test/level3/core/files/barfoo_nodefaultns.svg
... ... @@ -0,0 +1,28 @@
  1 +<!DOCTYPE svg:svg [
  2 +<!ENTITY ent1 'foo'>
  3 +<!ENTITY ent2 'foo<br/>'>
  4 +<!ELEMENT svg:svg (svg:rect,svg:script,html:body)>
  5 +<!ATTLIST svg:svg xmlns:svg CDATA #IMPLIED>
  6 +<!ELEMENT svg:rect EMPTY>
  7 +<!ATTLIST svg:rect
  8 + x CDATA #REQUIRED
  9 + y CDATA #REQUIRED
  10 + width CDATA #REQUIRED
  11 + height CDATA #REQUIRED
  12 + fill CDATA #REQUIRED>
  13 +<!ELEMENT html:p (#PCDATA|html:br)*>
  14 +<!ATTLIST html:p class CDATA #IMPLIED>
  15 +<!ELEMENT html:body (html:p)>
  16 +<!ATTLIST html:body xmlns:html CDATA #IMPLIED>
  17 +<!ELEMENT html:br EMPTY>
  18 +<!ELEMENT svg:script (#PCDATA)>
  19 +<!ATTLIST svg:script type CDATA #IMPLIED>
  20 +<!ENTITY svgunit SYSTEM "svgunit.js">
  21 +<!ENTITY svgtest SYSTEM "svgtest.js">
  22 +]>
  23 +<svg:svg xmlns:svg="http://www.w3.org/2000/svg">
  24 +<svg:rect x="0" y="0" width="100" height="100" fill="blue"/><svg:script type="text/ecmascript">&svgtest;&svgunit;</svg:script>
  25 +<html:body xmlns:html='http://www.w3.org/1999/xhtml'>
  26 +<html:p class="visible:false">bar</html:p>
  27 +</html:body>
  28 +</svg:svg>
26 test/level3/core/files/barfoo_nodefaultns.xhtml
... ... @@ -0,0 +1,26 @@
  1 +<!DOCTYPE html:html [
  2 +<!ENTITY ent1 'foo'>
  3 +<!ENTITY ent2 'foo<br/>'>
  4 +<!ELEMENT html:html (html:head, html:body)>
  5 +<!ATTLIST html:html xmlns:html CDATA #IMPLIED>
  6 +<!ELEMENT html:head (html:title,script*)>
  7 +<!ATTLIST html:head xmlns CDATA #IMPLIED>
  8 +<!ELEMENT script (#PCDATA)>
  9 +<!ATTLIST script
  10 + src CDATA #IMPLIED
  11 + type CDATA #IMPLIED
  12 + charset CDATA #IMPLIED>
  13 +<!ELEMENT html:title (#PCDATA)>
  14 +<!ELEMENT html:body (html:p)>
  15 +<!ELEMENT html:p (#PCDATA|html:br)*>
  16 +<!ATTLIST html:p class CDATA #IMPLIED>
  17 +<!ELEMENT html:br EMPTY>
  18 +]>
  19 +<html:html xmlns:html='http://www.w3.org/1999/xhtml'>
  20 +<html:head xmlns='http://www.w3.org/1999/xhtml'>
  21 +<html:title>test file</html:title>
  22 +</html:head>
  23 +<html:body>
  24 +<html:p class="visible:false">bar</html:p>
  25 +</html:body>
  26 +</html:html>
26 test/level3/core/files/barfoo_nodefaultns.xml
... ... @@ -0,0 +1,26 @@
  1 +<!DOCTYPE html:html [
  2 +<!ENTITY ent1 'foo'>
  3 +<!ENTITY ent2 'foo<br/>'>
  4 +<!ELEMENT html:html (html:head, html:body)>
  5 +<!ATTLIST html:html xmlns:html CDATA #IMPLIED>
  6 +<!ELEMENT html:head (html:title,script*)>
  7 +<!ATTLIST html:head xmlns CDATA #IMPLIED>
  8 +<!ELEMENT html:title (#PCDATA)>
  9 +<!ELEMENT script (#PCDATA)>
  10 +<!ATTLIST script
  11 + src CDATA #IMPLIED
  12 + type CDATA #IMPLIED
  13 + charset CDATA #IMPLIED>
  14 +<!ELEMENT html:body (html:p)>
  15 +<!ELEMENT html:p (#PCDATA|html:br)*>
  16 +<!ATTLIST html:p class CDATA #IMPLIED>
  17 +<!ELEMENT html:br EMPTY>
  18 +]>
  19 +<html:html xmlns:html='http://www.w3.org/1999/xhtml'>
  20 +<html:head xmlns='http://www.w3.org/1999/xhtml'>
  21 +<html:title>test file</html:title>
  22 +</html:head>
  23 +<html:body>
  24 +<html:p class="visible:false">bar</html:p>
  25 +</html:body>
  26 +</html:html>
28 test/level3/core/files/barfoo_standalone_no.svg
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2 +<!DOCTYPE svg [
  3 +<!ENTITY ent1 'foo'>
  4 +<!ENTITY ent2 'foo<br/>'>
  5 +<!ELEMENT svg (rect,script,body)>
  6 +<!ATTLIST svg xmlns CDATA #IMPLIED>
  7 +<!ELEMENT rect EMPTY>
  8 +<!ATTLIST rect
  9 + x CDATA #REQUIRED
  10 + y CDATA #REQUIRED
  11 + width CDATA #REQUIRED
  12 + height CDATA #REQUIRED
  13 + fill CDATA #REQUIRED>
  14 +<!ELEMENT p (#PCDATA|br)*>
  15 +<!ELEMENT body (p)>
  16 +<!ATTLIST body xmlns CDATA #IMPLIED>
  17 +<!ELEMENT br EMPTY>
  18 +<!ELEMENT script (#PCDATA)>
  19 +<!ATTLIST script type CDATA #IMPLIED>
  20 +<!ENTITY svgunit SYSTEM "svgunit.js">
  21 +<!ENTITY svgtest SYSTEM "svgtest.js">
  22 +]>
  23 +<svg xmlns="http://www.w3.org/2000/svg">
  24 +<rect x="0" y="0" width="100" height="100" fill="blue"/><script type="text/ecmascript">&svgtest;&svgunit;</script>
  25 +<body xmlns='http://www.w3.org/1999/xhtml'>
  26 +<p>bar</p>
  27 +</body>
  28 +</svg>
26 test/level3/core/files/barfoo_standalone_no.xhtml
... ... @@ -0,0 +1,26 @@
  1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2 +<!DOCTYPE html [
  3 +<!ENTITY ent1 'foo'>
  4 +<!ENTITY ent2 'foo<br/>'>
  5 +<!ELEMENT html (head, body)>
  6 +<!ATTLIST html xmlns CDATA #IMPLIED>
  7 +<!ELEMENT head (title,script*)>
  8 +<!ELEMENT title (#PCDATA)>
  9 +<!ELEMENT script (#PCDATA)>
  10 +<!ATTLIST script
  11 + src CDATA #IMPLIED
  12 + type CDATA #IMPLIED
  13 + charset CDATA #IMPLIED>
  14 +<!ELEMENT body (p)>
  15 +<!ATTLIST body onload CDATA #IMPLIED>
  16 +<!ELEMENT p (#PCDATA|br)*>
  17 +<!ELEMENT br EMPTY>
  18 +]>
  19 +<html xmlns='http://www.w3.org/1999/xhtml'>
  20 +<head>
  21 +<title>replaceWholeText sample</title>
  22 +</head>
  23 +<body onload="parent.loadComplete()">
  24 +<p>bar</p>
  25 +</body>
  26 +</html>
26 test/level3/core/files/barfoo_standalone_no.xml
... ... @@ -0,0 +1,26 @@
  1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2 +<!DOCTYPE html [
  3 +<!ENTITY ent1 'foo'>
  4 +<!ENTITY ent2 'foo<br/>'>
  5 +<!ELEMENT html (head, body)>
  6 +<!ATTLIST html xmlns CDATA #IMPLIED>
  7 +<!ELEMENT head (title,script*)>
  8 +<!ELEMENT title (#PCDATA)>
  9 +<!ELEMENT script (#PCDATA)>
  10 +<!ATTLIST script
  11 + src CDATA #IMPLIED
  12 + type CDATA #IMPLIED
  13 + charset CDATA #IMPLIED>
  14 +<!ELEMENT body (p)>
  15 +<!ATTLIST body onload CDATA #IMPLIED>
  16 +<!ELEMENT p (#PCDATA|br)*>
  17 +<!ELEMENT br EMPTY>
  18 +]>
  19 +<html xmlns='http://www.w3.org/1999/xhtml'>
  20 +<head>
  21 +<title>replaceWholeText sample</title>
  22 +</head>
  23 +<body onload="parent.loadComplete()">
  24 +<p>bar</p>
  25 +</body>
  26 +</html>
24 test/level3/core/files/barfoo_standalone_yes.svg
... ... @@ -0,0 +1,24 @@
  1 +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2 +<!DOCTYPE svg [
  3 +<!ENTITY ent1 'foo'>
  4 +<!ENTITY ent2 'foo<br/>'>
  5 +<!ELEMENT svg (rect,body)>
  6 +<!ATTLIST svg xmlns CDATA #IMPLIED>
  7 +<!ELEMENT rect EMPTY>
  8 +<!ATTLIST rect
  9 + x CDATA #REQUIRED
  10 + y CDATA #REQUIRED
  11 + width CDATA #REQUIRED
  12 + height CDATA #REQUIRED
  13 + fill CDATA #REQUIRED>
  14 +<!ELEMENT p (#PCDATA|br)*>
  15 +<!ELEMENT body (p)>
  16 +<!ATTLIST body xmlns CDATA #IMPLIED>
  17 +<!ELEMENT br EMPTY>
  18 +]>
  19 +<svg xmlns="http://www.w3.org/2000/svg">
  20 +<rect x="0" y="0" width="100" height="100" fill="blue"/>
  21 +<body xmlns='http://www.w3.org/1999/xhtml'>
  22 +<p>bar</p>
  23 +</body>
  24 +</svg>
26 test/level3/core/files/barfoo_standalone_yes.xhtml
... ... @@ -0,0 +1,26 @@
  1 +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2 +<!DOCTYPE html [
  3 +<!ENTITY ent1 'foo'>
  4 +<!ENTITY ent2 'foo<br/>'>
  5 +<!ELEMENT html (head, body)>
  6 +<!ATTLIST html xmlns CDATA #IMPLIED>
  7 +<!ELEMENT head (title,script*)>
  8 +<!ELEMENT title (#PCDATA)>
  9 +<!ELEMENT script (#PCDATA)>
  10 +<!ATTLIST script
  11 + src CDATA #IMPLIED
  12 + type CDATA #IMPLIED
  13 + charset CDATA #IMPLIED>
  14 +<!ELEMENT body (p)>
  15 +<!ATTLIST body onload CDATA #IMPLIED>
  16 +<!ELEMENT p (#PCDATA|br)*>
  17 +<!ELEMENT br EMPTY>
  18 +]>
  19 +<html xmlns='http://www.w3.org/1999/xhtml'>
  20 +<head>
  21 +<title>getXmlStandalone test doc</title>
  22 +</head>
  23 +<body onload="parent.loadComplete()">
  24 +<p>bar</p>
  25 +</body>
  26 +</html>
26 test/level3/core/files/barfoo_standalone_yes.xml
... ... @@ -0,0 +1,26 @@
  1 +<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2 +<!DOCTYPE html [
  3 +<!ENTITY ent1 'foo'>
  4 +<!ENTITY ent2 'foo<br/>'>
  5 +<!ELEMENT html (head, body)>
  6 +<!ATTLIST html xmlns CDATA #IMPLIED>
  7 +<!ELEMENT head (title,script*)>
  8 +<!ELEMENT title (#PCDATA)>
  9 +<!ELEMENT script (#PCDATA)>
  10 +<!ATTLIST script
  11 + src CDATA #IMPLIED
  12 + type CDATA #IMPLIED
  13 + charset CDATA #IMPLIED>
  14 +<!ELEMENT body (p)>
  15 +<!ATTLIST body onload CDATA #IMPLIED>
  16 +<!ELEMENT p (#PCDATA|br)*>
  17 +<!ELEMENT br EMPTY>
  18 +]>
  19 +<html xmlns='http://www.w3.org/1999/xhtml'>
  20 +<head>
  21 +<title>getXmlStandalone test doc</title>
  22 +</head>
  23 +<body onload="parent.loadComplete()">
  24 +<p>bar</p>
  25 +</body>
  26 +</html>
BIN  test/level3/core/files/barfoo_utf16.svg
Binary file not shown
BIN  test/level3/core/files/barfoo_utf16.xhtml
Binary file not shown
BIN  test/level3/core/files/barfoo_utf16.xml
Binary file not shown
30 test/level3/core/files/barfoo_utf8.svg
... ... @@ -0,0 +1,30 @@
  1 +<?xml version="1.0" encoding="uTf-8"?>
  2 +<!DOCTYPE svg [
  3 +<!ENTITY ent1 'foo'>
  4 +<!ENTITY ent2 'foo<br/>'>
  5 +<!ELEMENT svg (rect,script,body)>
  6 +<!ATTLIST svg xmlns CDATA #IMPLIED>
  7 +<!ELEMENT rect EMPTY>
  8 +<!ATTLIST rect
  9 + x CDATA #REQUIRED
  10 + y CDATA #REQUIRED
  11 + width CDATA #REQUIRED
  12 + height CDATA #REQUIRED
  13 + fill CDATA #REQUIRED>
  14 +<!ELEMENT p (#PCDATA|br)*>
  15 +<!ELEMENT body (p)>
  16 +<!ATTLIST body xmlns CDATA #IMPLIED>
  17 +<!ELEMENT br EMPTY>
  18 +<!ELEMENT script (#PCDATA)>
  19 +<!ATTLIST script type CDATA #IMPLIED>
  20 +<!ENTITY svgunit SYSTEM "svgunit.js">
  21 +<!ENTITY svgtest SYSTEM "svgtest.js">
  22 +<!ENTITY ent5 PUBLIC "entityURI" "entityFile" NDATA notation1>
  23 +<!NOTATION notation1 PUBLIC "notation1File">
  24 +]>
  25 +<svg xmlns="http://www.w3.org/2000/svg">
  26 +<rect x="0" y="0" width="100" height="100" fill="blue"/><script type="text/ecmascript">&svgtest;&svgunit;</script>
  27 +<body xmlns='http://www.w3.org/1999/xhtml'>
  28 +<p>bar</p>
  29 +</body>
  30 +</svg>
28 test/level3/core/files/barfoo_utf8.xhtml
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="uTf-8"?>
  2 +<!DOCTYPE html [
  3 +<!ENTITY ent1 'foo'>
  4 +<!ENTITY ent2 'foo<br/>'>
  5 +<!ELEMENT html (head, body)>
  6 +<!ATTLIST html xmlns CDATA #IMPLIED>
  7 +<!ELEMENT head (title,script*)>
  8 +<!ELEMENT title (#PCDATA)>
  9 +<!ELEMENT script (#PCDATA)>
  10 +<!ATTLIST script
  11 + src CDATA #IMPLIED
  12 + type CDATA #IMPLIED
  13 + charset CDATA #IMPLIED>
  14 +<!ELEMENT body (p)>
  15 +<!ATTLIST body onload CDATA #IMPLIED>
  16 +<!ELEMENT p (#PCDATA|br)*>
  17 +<!ELEMENT br EMPTY>
  18 +<!ENTITY ent5 PUBLIC "entityURI" "entityFile" NDATA notation1>
  19 +<!NOTATION notation1 PUBLIC "notation1File">
  20 +]>
  21 +<html xmlns='http://www.w3.org/1999/xhtml'>
  22 +<head>
  23 +<title>test file</title>
  24 +</head>
  25 +<body onload="parent.loadComplete()">
  26 +<p>bar</p>
  27 +</body>
  28 +</html>
28 test/level3/core/files/barfoo_utf8.xml
... ... @@ -0,0 +1,28 @@
  1 +<?xml version="1.0" encoding="uTf-8"?>
  2 +<!DOCTYPE html [
  3 +<!ENTITY ent1 'foo'>
  4 +<!ENTITY ent2 'foo<br/>'>
  5 +<!ELEMENT html (head, body)>
  6 +<!ATTLIST html xmlns CDATA #IMPLIED>
  7 +<!ELEMENT head (title,script*)>
  8 +<!ELEMENT title (#PCDATA)>
  9 +<!ELEMENT script (#PCDATA)>
  10 +<!ATTLIST script
  11 + src CDATA #IMPLIED
  12 + type CDATA #IMPLIED
  13 + charset CDATA #IMPLIED>
  14 +<!ELEMENT body (p)>
  15 +<!ATTLIST body onload CDATA #IMPLIED>
  16 +<!ELEMENT p (#PCDATA|br)*>
  17 +<!ELEMENT br EMPTY>
  18 +<!ENTITY ent5 PUBLIC "entityURI" "entityFile" NDATA notation1>
  19 +<!NOTATION notation1 PUBLIC "notation1File">
  20 +]>
  21 +<html xmlns='http://www.w3.org/1999/xhtml'>
  22 +<head>
  23 +<title>test file</title>
  24 +</head>
  25 +<body onload="parent.loadComplete()">
  26 +<p>bar</p>
  27 +</body>
  28 +</html>
BIN  test/level3/core/files/blank.gif
17 test/level3/core/files/canonicalform01.svg
... ... @@ -0,0 +1,17 @@
  1 +<?xml version="1.0"?>
  2 +
  3 +<?xml-stylesheet href="doc.xsl"
  4 + type="text/xsl" ?>
  5 +
  6 +<!DOCTYPE svg SYSTEM "xhtml1-strict.dtd"[
  7 +<!ENTITY svgunit SYSTEM "svgunit.js">
  8 +<!ENTITY svgtest SYSTEM "svgtest.js">
  9 +]>
  10 +<svg xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100" fill="blue"/><script type="text/ecmascript">&svgtest;&svgunit;</script><body xmlns='http://www.w3.org/1999/xhtml'>
  11 +<p>Hello, world!<!-- Comment 1 --></p></body></svg>
  12 +
  13 +<?pi-without-data ?>
  14 +
  15 +<!-- Comment 2 -->
  16 +
  17 +<!-- Comment 3 -->
14 test/level3/core/files/canonicalform01.xhtml
... ... @@ -0,0 +1,14 @@
  1 +<?xml version="1.0"?>
  2 +
  3 +<?xml-stylesheet href="doc.xsl"
  4 + type="text/xsl" ?>
  5 +
  6 +<!DOCTYPE html SYSTEM "xhtml1-strict.dtd">
  7 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform01</title></head><body onload="parent.loadComplete()">
  8 +<p>Hello, world!<!-- Comment 1 --></p></body></html>
  9 +
  10 +<?pi-without-data ?>
  11 +
  12 +<!-- Comment 2 -->
  13 +
  14 +<!-- Comment 3 -->
14 test/level3/core/files/canonicalform01.xml
... ... @@ -0,0 +1,14 @@
  1 +<?xml version="1.0"?>
  2 +
  3 +<?xml-stylesheet href="doc.xsl"
  4 + type="text/xsl" ?>
  5 +
  6 +<!DOCTYPE html SYSTEM "xhtml1-strict.dtd">
  7 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform01</title></head><body onload="parent.loadComplete()">
  8 +<p>Hello, world!<!-- Comment 1 --></p></body></html>
  9 +
  10 +<?pi-without-data ?>
  11 +
  12 +<!-- Comment 2 -->
  13 +
  14 +<!-- Comment 3 -->
14 test/level3/core/files/canonicalform02.svg
... ... @@ -0,0 +1,14 @@
  1 +<!DOCTYPE svg SYSTEM "xhtml1-strict.dtd"[
  2 +<!ENTITY svgunit SYSTEM "svgunit.js">
  3 +<!ENTITY svgtest SYSTEM "svgtest.js">
  4 +]><svg xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100" fill="blue"/><script type="text/ecmascript">&svgtest;&svgunit;</script><body xmlns='http://www.w3.org/1999/xhtml'>
  5 + <acronym> </acronym>
  6 + <em> A B </em>
  7 + <p>
  8 + A
  9 + <acronym> </acronym>
  10 + B
  11 + <em> A B </em>
  12 + C
  13 + </p>
  14 +</body></svg>
11 test/level3/core/files/canonicalform02.xhtml
... ... @@ -0,0 +1,11 @@
  1 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform02</title></head><body onload="parent.loadComplete()">
  2 + <acronym> </acronym>
  3 + <em> A B </em>
  4 + <p>
  5 + A
  6 + <acronym> </acronym>
  7 + B
  8 + <em> A B </em>
  9 + C
  10 + </p>
  11 +</body></html>
11 test/level3/core/files/canonicalform02.xml
... ... @@ -0,0 +1,11 @@
  1 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform02</title></head><body onload="parent.loadComplete()">
  2 + <acronym> </acronym>
  3 + <em> A B </em>
  4 + <p>
  5 + A
  6 + <acronym> </acronym>
  7 + B
  8 + <em> A B </em>
  9 + C
  10 + </p>
  11 +</body></html>
22 test/level3/core/files/canonicalform03.svg
... ... @@ -0,0 +1,22 @@
  1 +<!DOCTYPE svg SYSTEM "xhtml1-strict.dtd"[
  2 +<!ATTLIST acronym title CDATA "default">
  3 +<!ENTITY svgunit SYSTEM "svgunit.js">
  4 +<!ENTITY svgtest SYSTEM "svgtest.js">
  5 +]>
  6 +<svg xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100" fill="blue"/><script type="text/ecmascript">&svgtest;&svgunit;</script><body xmlns='http://www.w3.org/1999/xhtml'>
  7 + <br />
  8 + <br ></br>
  9 + <div name = "elem3" id="elem3" />
  10 + <div name="elem4" id="elem4" ></div>
  11 + <div a:attr="out" b:attr="sorted" name="all" class="I'm"
  12 + xmlns:b="http://www.ietf.org"
  13 + xmlns:a="http://www.w3.org"
  14 + xmlns="http://example.org"/>
  15 + <div xmlns="" xmlns:a="http://www.w3.org">
  16 + <div xmlns="http://www.ietf.org">
  17 + <div xmlns="" xmlns:a="http://www.w3.org">
  18 + <acronym xmlns="" xmlns:a="http://www.ietf.org"/>
  19 + </div>
  20 + </div>
  21 + </div>
  22 +</body></svg>
18 test/level3/core/files/canonicalform03.xhtml
... ... @@ -0,0 +1,18 @@
  1 +<!DOCTYPE html [<!ATTLIST acronym title CDATA "default">]>
  2 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform03</title></head><body onload="parent.loadComplete()">
  3 + <br />
  4 + <br ></br>
  5 + <div name = "elem3" id="elem3" />
  6 + <div name="elem4" id="elem4" ></div>
  7 + <div a:attr="out" b:attr="sorted" name="all" class="I'm"
  8 + xmlns:b="http://www.ietf.org"
  9 + xmlns:a="http://www.w3.org"
  10 + xmlns="http://example.org"/>
  11 + <div xmlns="" xmlns:a="http://www.w3.org">
  12 + <div xmlns="http://www.ietf.org">
  13 + <div xmlns="" xmlns:a="http://www.w3.org">
  14 + <acronym xmlns="" xmlns:a="http://www.ietf.org"/>
  15 + </div>
  16 + </div>
  17 + </div>
  18 +</body></html>
18 test/level3/core/files/canonicalform03.xml
... ... @@ -0,0 +1,18 @@
  1 +<!DOCTYPE html [<!ATTLIST acronym title CDATA "default">]>
  2 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform03</title></head><body onload="parent.loadComplete()">
  3 + <br />
  4 + <br ></br>
  5 + <div name = "elem3" id="elem3" />
  6 + <div name="elem4" id="elem4" ></div>
  7 + <div a:attr="out" b:attr="sorted" name="all" class="I'm"
  8 + xmlns:b="http://www.ietf.org"
  9 + xmlns:a="http://www.w3.org"
  10 + xmlns="http://example.org"/>
  11 + <div xmlns="" xmlns:a="http://www.w3.org">
  12 + <div xmlns="http://www.ietf.org">
  13 + <div xmlns="" xmlns:a="http://www.w3.org">
  14 + <acronym xmlns="" xmlns:a="http://www.ietf.org"/>
  15 + </div>
  16 + </div>
  17 + </div>
  18 +</body></html>
15 test/level3/core/files/canonicalform04.svg
... ... @@ -0,0 +1,15 @@
  1 +<!DOCTYPE svg [
  2 +<!ATTLIST div id ID #IMPLIED>
  3 +<!ATTLIST div class NMTOKENS #IMPLIED>
  4 +<!ENTITY svgunit SYSTEM "svgunit.js">
  5 +<!ENTITY svgtest SYSTEM "svgtest.js">
  6 +]>
  7 +<svg xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100" fill="blue"/><script type="text/ecmascript">&svgtest;&svgunit;</script><body xmlns='http://www.w3.org/1999/xhtml'>
  8 + <em>First line&#x0d;&#10;Second line</em>
  9 + <acronym>&#x32;</acronym>
  10 + <code><![CDATA[value>"0" && value<"10" ?"valid":"error"]]></code>
  11 + <code title='value>"0" &amp;&amp; value&lt;"10" ?"valid":"error"'>valid</code>
  12 + <div title=' &apos; &#x20;&#13;&#xa;&#9; &apos; '/>
  13 + <div class=' A &#x20;&#13;&#xa;&#9; B '/>
  14 + <div id=' &apos; &#x20;&#13;&#xa;&#9; &apos; '/>
  15 +</body></svg>
13 test/level3/core/files/canonicalform04.xhtml
... ... @@ -0,0 +1,13 @@
  1 +<!DOCTYPE html [
  2 +<!ATTLIST div id ID #IMPLIED>
  3 +<!ATTLIST div class NMTOKENS #IMPLIED>
  4 +]>
  5 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform04</title></head><body onload="parent.loadComplete()">
  6 + <em>First line&#x0d;&#10;Second line</em>
  7 + <acronym>&#x32;</acronym>
  8 + <code><![CDATA[value>"0" && value<"10" ?"valid":"error"]]></code>
  9 + <code title='value>"0" &amp;&amp; value&lt;"10" ?"valid":"error"'>valid</code>
  10 + <div title=' &apos; &#x20;&#13;&#xa;&#9; &apos; '/>
  11 + <div class=' A &#x20;&#13;&#xa;&#9; B '/>
  12 + <div id=' &apos; &#x20;&#13;&#xa;&#9; &apos; '/>
  13 +</body></html>
13 test/level3/core/files/canonicalform04.xml
... ... @@ -0,0 +1,13 @@
  1 +<!DOCTYPE html [
  2 +<!ATTLIST div id ID #IMPLIED>
  3 +<!ATTLIST div class NMTOKENS #IMPLIED>
  4 +]>
  5 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform04</title></head><body onload="parent.loadComplete()">
  6 + <em>First line&#x0d;&#10;Second line</em>
  7 + <acronym>&#x32;</acronym>
  8 + <code><![CDATA[value>"0" && value<"10" ?"valid":"error"]]></code>
  9 + <code title='value>"0" &amp;&amp; value&lt;"10" ?"valid":"error"'>valid</code>
  10 + <div title=' &apos; &#x20;&#13;&#xa;&#9; &apos; '/>
  11 + <div class=' A &#x20;&#13;&#xa;&#9; B '/>
  12 + <div id=' &apos; &#x20;&#13;&#xa;&#9; &apos; '/>
  13 +</body></html>
15 test/level3/core/files/canonicalform05.svg
... ... @@ -0,0 +1,15 @@
  1 +<!DOCTYPE svg [
  2 +<!ATTLIST p attrExtEnt ENTITY #IMPLIED>
  3 +<!ENTITY ent1 "Hello">
  4 +<!ENTITY ent2 SYSTEM "world.txt">
  5 +<!ENTITY entExt SYSTEM "earth.gif" NDATA gif>
  6 +<!NOTATION gif SYSTEM "viewgif.exe">
  7 +<!ENTITY svgunit SYSTEM "svgunit.js">
  8 +<!ENTITY svgtest SYSTEM "svgtest.js">
  9 +]>
  10 +<svg xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100" fill="blue"/><script type="text/ecmascript">&svgtest;&svgunit;</script><body xmlns='http://www.w3.org/1999/xhtml'>
  11 +<p attrExtEnt="entExt">
  12 + &ent1;, &ent2;!
  13 +</p></body></svg>
  14 +
  15 +<!-- Let world.txt contain "world" (excluding the quotes) -->
13 test/level3/core/files/canonicalform05.xhtml
... ... @@ -0,0 +1,13 @@
  1 +<!DOCTYPE html [
  2 +<!ATTLIST p attrExtEnt ENTITY #IMPLIED>
  3 +<!ENTITY ent1 "Hello">
  4 +<!ENTITY ent2 SYSTEM "world.txt">
  5 +<!ENTITY entExt SYSTEM "earth.gif" NDATA gif>
  6 +<!NOTATION gif SYSTEM "viewgif.exe">
  7 +]>
  8 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform05</title></head><body onload="parent.loadComplete()">
  9 +<p attrExtEnt="entExt">
  10 + &ent1;, &ent2;!
  11 +</p></body></html>
  12 +
  13 +<!-- Let world.txt contain "world" (excluding the quotes) -->
13 test/level3/core/files/canonicalform05.xml
... ... @@ -0,0 +1,13 @@
  1 +<!DOCTYPE html [
  2 +<!ATTLIST p attrExtEnt ENTITY #IMPLIED>
  3 +<!ENTITY ent1 "Hello">
  4 +<!ENTITY ent2 SYSTEM "world.txt">
  5 +<!ENTITY entExt SYSTEM "earth.gif" NDATA gif>
  6 +<!NOTATION gif SYSTEM "viewgif.exe">
  7 +]>
  8 +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>canonicalform05</title></head><body onload="parent.loadComplete()">
  9 +<p attrExtEnt="entExt">
  10 + &ent1;, &ent2;!
  11 +</p></body></html>
  12 +
  13 +<!-- Let world.txt contain "world" (excluding the quotes) -->
89 test/level3/core/files/datatype_normalization.svg
... ... @@ -0,0 +1,89 @@
  1 +<!DOCTYPE svg [
  2 +<!ENTITY svgunit SYSTEM "svgunit.js">
  3 +<!ENTITY svgtest SYSTEM "svgtest.js">
  4 +<!ELEMENT svg (rect, script, data)>
  5 +<!ATTLIST svg
  6 + xmlns CDATA #IMPLIED
  7 + xmlns:xsi CDATA #IMPLIED
  8 + xsi:schemaLocation CDATA #IMPLIED>
  9 + <!ELEMENT rect EMPTY>
  10 + <!ATTLIST rect
  11 + x CDATA #REQUIRED
  12 + y CDATA #REQUIRED
  13 + width CDATA #REQUIRED
  14 + height CDATA #REQUIRED>
  15 + <!ELEMENT script (#PCDATA)>
  16 + <!ATTLIST script type CDATA #IMPLIED>
  17 + <!ELEMENT data (double*, boolean*, decimal*, float*, dateTime*, time*)>
  18 + <!ATTLIST data xmlns CDATA #IMPLIED>
  19 + <!ELEMENT double (#PCDATA)>
  20 + <!ATTLIST double
  21 + value CDATA #IMPLIED
  22 + union CDATA #IMPLIED>
  23 + <!ELEMENT boolean (#PCDATA)>
  24 + <!ATTLIST boolean
  25 + value CDATA #IMPLIED
  26 + union CDATA #IMPLIED>
  27 + <!ELEMENT decimal (#PCDATA)>
  28 + <!ATTLIST decimal
  29 + value CDATA #IMPLIED
  30 + union CDATA #IMPLIED>
  31 + <!ELEMENT float (#PCDATA)>
  32 + <!ATTLIST float
  33 + value CDATA #IMPLIED
  34 + union CDATA #IMPLIED>
  35 + <!ELEMENT dateTime (#PCDATA)>
  36 + <!ATTLIST dateTime
  37 + value CDATA #IMPLIED
  38 + union CDATA #IMPLIED>
  39 + <!ELEMENT time (#PCDATA)>
  40 + <!ATTLIST time
  41 + value CDATA #IMPLIED
  42 + union CDATA #IMPLIED>
  43 +]>
  44 +<svg xmlns="http://www.w3.org/2000/svg"
  45 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  46 + xsi:schemaLocation="http://www.w3.org/2000/svg datatype_normalization.svg.xsd">
  47 +<rect x="0" y="0" width="100" height="100"/><script type="text/ecmascript">&svgtest;&svgunit;</script>
  48 +<data xmlns='http://www.w3.org/2001/DOM-Test-Suite/Level-3/datatype_normalization'>
  49 +<double value="
  50 + +0003.141592600E+0000 " union=" +0003.141592600E+0000
  51 + "> -31415926.00E-7
  52 +2.718</double>
  53 +<double value=" NaN" union="NaN "> INF -INF </double>
  54 +<double value="
  55 +1 " union="1
  56 +"> -0</double>
  57 +<boolean value="
  58 + true" union="false
  59 + "> false true false </boolean>
  60 +<boolean value="
  61 + 1" union=" 0
  62 + ">0 1 0 </boolean>
  63 +<decimal value=" +0003.141592600 " union=" +0003.141592600 "> +10 .1 </decimal>
  64 +<decimal value=" 01 " union=" 01 "> -.001 </decimal>
  65 +<float value=" +0003.141592600E+0000 " union=" +0003.141592600E+0000 "> -31415926.00E-7
  66 +2.718</float>
  67 +<float value=" NaN " union=" NaN "> INF -INF </float>
  68 +<float value="
  69 +1 " union="1
  70 +">-0</float>
  71 +<dateTime value="
  72 +2004-01-21T15:30:00-05:00" union="2004-01-21T20:30:00-05:00
  73 +">2004-01-21T15:30:00
  74 +2004-01-21T15:30:00Z</dateTime>
  75 +<dateTime value="
  76 +2004-01-21T15:30:00.0000-05:00" union="2004-01-21T15:30:00.0000-05:00
  77 +"> 2004-01-21T15:30:00.0000 </dateTime>
  78 +<dateTime value="2004-01-21T15:30:00.0001-05:00" union="2004-01-21T15:30:00.0001-05:00">2004-01-21T15:30:00.0001</dateTime>
  79 +<time value="
  80 +15:30:00-05:00" union="15:30:00-05:00
  81 +"> 15:30:00 </time>
  82 +<time value="
  83 + 15:30:00.0000-05:00" union=" 15:30:00.0000-05:00
  84 + ">15:30:00.0000</time>
  85 +<time value="
  86 + 15:30:00.0001-05:00" union="15:30:00.0001-05:00
  87 + ">15:30:00.0001</time>
  88 +</data>
  89 +</svg>
60 test/level3/core/files/datatype_normalization.svg.xsd
... ... @@ -0,0 +1,60 @@
  1 +<!--
  2 +
  3 +Copyright (c) 2001-2004 World Wide Web Consortium,
  4 +(Massachusetts Institute of Technology, Institut National de
  5 +Recherche en Informatique et en Automatique, Keio University). All
  6 +Rights Reserved. This program is distributed under the W3C's Software
  7 +Intellectual Property License. This program is distributed in the
  8 +hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  9 +the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  10 +PURPOSE.
  11 +
  12 +See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  13 +
  14 +-->
  15 +
  16 +<!--
  17 +
  18 +This schema is attempts to use every construct that could
  19 +be interrogated by DOM Level 3 and is no way intended to
  20 +be a general purpose schema for SVG
  21 +
  22 +-->
  23 +
  24 +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  25 + targetNamespace="http://www.w3.org/2000/svg"
  26 + xmlns="http://www.w3.org/2000/svg"
  27 + xmlns:data="http://www.w3.org/2001/DOM-Test-Suite/Level-3/datatype_normalization">
  28 +
  29 + <xsd:import namespace="http://www.w3.org/2001/DOM-Test-Suite/Level-3/datatype_normalization" schemaLocation="datatype_normalization.xsd"/>
  30 +
  31 + <xsd:element name="svg">
  32 + <xsd:complexType>
  33 + <xsd:sequence>
  34 + <xsd:element ref="rect"/>
  35 + <xsd:element ref="script"/>
  36 + <xsd:element ref="data:data"/>
  37 + </xsd:sequence>
  38 + </xsd:complexType>
  39 + </xsd:element>
  40 +
  41 + <xsd:element name="rect">
  42 + <xsd:complexType>
  43 + <xsd:attribute name="x" type="xsd:double" use="required"/>
  44 + <xsd:attribute name="y" type="xsd:double" use="required"/>
  45 + <xsd:attribute name="height" type="xsd:double" use="required"/>
  46 + <xsd:attribute name="width" type="xsd:double" use="required"/>
  47 + </xsd:complexType>
  48 + </xsd:element>
  49 +
  50 + <xsd:element name="script">
  51 + <xsd:complexType>
  52 + <xsd:simpleContent>
  53 + <xsd:extension base="xsd:string">
  54 + <xsd:attribute name="type" type="xsd:string" use="required"/>
  55 + </xsd:extension>
  56 + </xsd:simpleContent>
  57 + </xsd:complexType>
  58 + </xsd:element>
  59 +
  60 +</xsd:schema>
90 test/level3/core/files/datatype_normalization.xml
... ... @@ -0,0 +1,90 @@
  1 +<!DOCTYPE svg [
  2 +<!ENTITY svgunit SYSTEM "svgunit.js">
  3 +<!ENTITY svgtest SYSTEM "svgtest.js">
  4 +<!ELEMENT svg (rect, script, data)>
  5 +<!ATTLIST svg
  6 + xmlns CDATA #IMPLIED
  7 + xmlns:xsi CDATA #IMPLIED
  8 + xsi:schemaLocation CDATA #IMPLIED>
  9 + <!ELEMENT rect EMPTY>
  10 + <!ATTLIST rect
  11 + x CDATA #REQUIRED
  12 + y CDATA #REQUIRED
  13 + width CDATA #REQUIRED
  14 + height CDATA #REQUIRED>
  15 + <!ELEMENT script (#PCDATA)>
  16 + <!ATTLIST script type CDATA #IMPLIED>
  17 + <!ELEMENT data (double*, boolean*, decimal*, float*, dateTime*, time*)>
  18 + <!ATTLIST data xmlns CDATA #IMPLIED>
  19 + <!ELEMENT double (#PCDATA)>
  20 + <!ATTLIST double
  21 + value CDATA #IMPLIED
  22 + union CDATA #IMPLIED>
  23 + <!ELEMENT boolean (#PCDATA)>
  24 + <!ATTLIST boolean
  25 + value CDATA #IMPLIED
  26 + union CDATA #IMPLIED>
  27 + <!ELEMENT decimal (#PCDATA)>
  28 + <!ATTLIST decimal
  29 + value CDATA #IMPLIED
  30 + union CDATA #IMPLIED>
  31 + <!ELEMENT float (#PCDATA)>
  32 + <!ATTLIST float
  33 + value CDATA #IMPLIED
  34 + union CDATA #IMPLIED>
  35 + <!ELEMENT dateTime (#PCDATA)>
  36 + <!ATTLIST dateTime
  37 + value CDATA #IMPLIED
  38 + union CDATA #IMPLIED>
  39 + <!ELEMENT time (#PCDATA)>
  40 + <!ATTLIST time
  41 + value CDATA #IMPLIED
  42 + union CDATA #IMPLIED>
  43 +
  44 +]>
  45 +<svg xmlns="http://www.w3.org/2000/svg"
  46 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  47 + xsi:schemaLocation="http://www.w3.org/2000/svg datatype_normalization.svg.xsd">
  48 +<rect x="0" y="0" width="100" height="100"/><script type="text/ecmascript">&svgtest;&svgunit;</script>
  49 +<data xmlns='http://www.w3.org/2001/DOM-Test-Suite/Level-3/datatype_normalization'>
  50 +<double value="
  51 + +0003.141592600E+0000 " union=" +0003.141592600E+0000
  52 + "> -31415926.00E-7
  53 +2.718</double>
  54 +<double value=" NaN" union="NaN "> INF -INF </double>
  55 +<double value="
  56 +1 " union="1
  57 +"> -0</double>
  58 +<boolean value="
  59 + true" union="false
  60 + "> false true false </boolean>
  61 +<boolean value="
  62 + 1" union=" 0
  63 + ">0 1 0 </boolean>
  64 +<decimal value=" +0003.141592600 " union=" +0003.141592600 "> +10 .1 </decimal>
  65 +<decimal value=" 01 " union=" 01 "> -.001 </decimal>
  66 +<float value=" +0003.141592600E+0000 " union=" +0003.141592600E+0000 "> -31415926.00E-7
  67 +2.718</float>
  68 +<float value=" NaN " union=" NaN "> INF -INF </float>
  69 +<float value="
  70 +1 " union="1
  71 +">-0</float>
  72 +<dateTime value="
  73 +2004-01-21T15:30:00-05:00" union="2004-01-21T20:30:00-05:00
  74 +">2004-01-21T15:30:00
  75 +2004-01-21T15:30:00Z</dateTime>
  76 +<dateTime value="
  77 +2004-01-21T15:30:00.0000-05:00" union="2004-01-21T15:30:00.0000-05:00
  78 +"> 2004-01-21T15:30:00.0000 </dateTime>
  79 +<dateTime value="2004-01-21T15:30:00.0001-05:00" union="2004-01-21T15:30:00.0001-05:00">2004-01-21T15:30:00.0001</dateTime>
  80 +<time value="
  81 +15:30:00-05:00" union="15:30:00-05:00
  82 +"> 15:30:00 </time>
  83 +<time value="
  84 + 15:30:00.0000-05:00" union=" 15:30:00.0000-05:00
  85 + ">15:30:00.0000</time>
  86 +<time value="
  87 + 15:30:00.0001-05:00" union="15:30:00.0001-05:00
  88 + ">15:30:00.0001</time>
  89 +</data>
  90 +</svg>
212 test/level3/core/files/datatype_normalization.xsd
... ... @@ -0,0 +1,212 @@