- From: Olivier Thereaux via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 03 Oct 2007 07:39:57 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/htdocs/dev/tests
In directory hutz:/tmp/cvs-serv20011
Modified Files:
index.html
Added Files:
3663-svg-10-doctype.svg 3663-svg-10-doctypeless.svg
3663-svg-11-doctype.svg 3663-svg-11-doctypeless.svg
3663-svg-basic-11-doctype.svg
3663-svg-basic-11-doctypeless.svg
3663-svg-noversion-doctype.svg 3663-svg-noversion-doctype2.svg
3663-svg-noversion-doctypeless.svg
3663-svg-tiny-11-doctype.svg 3663-svg-tiny-11-doctypeless.svg
Log Message:
tests for doctypeless (and doctyped, for comparison) SVG
--- NEW FILE: 3663-svg-noversion-doctype.svg ---
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="5cm" height="4cm" xmlns="http://www.w3.org/2000/svg">
<desc>This SVG sample has no version attribute in its root svg element, but has a doctype</desc>
<rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/>
<rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/>
<rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/>
<rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/>
<!-- Show outline of canvas using 'rect' element -->
<rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm"
fill="none" stroke="blue" stroke-width=".02cm" />
</svg>
--- NEW FILE: 3663-svg-10-doctypeless.svg ---
<?xml version="1.0" standalone="no"?>
<svg width="5cm" height="4cm"
xmlns="http://www.w3.org/2000/svg">
<desc>Four separate rectangles
</desc>
<rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/>
<rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/>
<rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/>
<rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/>
<!-- Show outline of canvas using 'rect' element -->
<rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm"
fill="none" stroke="blue" stroke-width=".02cm" />
</svg>
Index: index.html
===================================================================
RCS file: /sources/public/validator/htdocs/dev/tests/index.html,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- index.html 2 Oct 2007 06:10:42 -0000 1.93
+++ index.html 3 Oct 2007 07:39:54 -0000 1.94
@@ -13,6 +13,7 @@
<ul>
<li><a href="#doctypes">Document types support</a></li>
<li><a href="#valid_notcat">Document types outside the main catalogue</a></li>
+ <li><a href="#valid_doctypeless">Valid Doctypeless Documents</a></li>
<li><a href="#valid_warn">Valid Documents, with Warnings</a></li>
<li><a href="#wrong_mime">Valid Documents served with a wrong media type</a></li>
<li><a href="#valid_bugfix">Bug Regression Tests: Valid documents</a></li>
@@ -257,7 +258,76 @@
</ul>
-
+ <h4 id="valid_doctypeless">Valid Doctypeless Documents</h4>
+ <p>Some document types (SVG) do not require the presence of the DOCTYPE declaration, although a DTD can be used to validate. The validator can however determine the version to validate against by preparsing the root element and the presence of version, baseProfile attributes.</p>
+ <ul>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-10-doctype.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-10-doctype.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-10-doctype.svg">view</a>:
+ Valid SVG 1.0, using a DOCTYPE
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-10-doctypeless.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-10-doctypeless.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-10-doctypeless.svg">view</a>:
+ Valid SVG 1.0, but no declared DOCTYPE. Version attribute present for auto-detection
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-11-doctype.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-11-doctype.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-11-doctype.svg">view</a>:
+ Valid SVG 1.1, using a DOCTYPE
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-11-doctypeless.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-11-doctypeless.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-11-doctypeless.svg">view</a>:
+ Valid SVG 1.1, no declared DOCTYPE. Version attribute present for auto-detection.
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-basic-11-doctype.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-basic-11-doctype.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-basic-11-doctype.svg">view</a>:
+ Valid SVG Basic 1.1, using a DOCTYPE
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-basic-11-doctypeless.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-basic-11-doctypeless.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-basic-11-doctypeless.svg">view</a>:
+ Valid SVG Basic 1.1, no declared DOCTYPE. Version and baseProfile attributes present for auto-detection.
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-tiny-11-doctype.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-tiny-11-doctype.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-tiny-11-doctype.svg">view</a>:
+ Valid SVG Tiny 1.1, using a DOCTYPE
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-tiny-11-doctypeless.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-tiny-11-doctypeless.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-tiny-11-doctypeless.svg">view</a>:
+ Valid SVG Basic 1.1, no declared DOCTYPE. Version and baseProfile attributes present for auto-detection.
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctype.svg">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctype.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-noversion-doctype.svg">view</a>:
+ Valid SVG 1.1, using a DOCTYPE. No version attribute (optional). Should use info given by doctype.
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctype2.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctype2.svg;ss">with v.w.o</a> -
+ <a href="html20.html">view</a>:
+ Valid SVG 1.0, using a DOCTYPE. No version attribute (optional). Should use info given by doctype.
+ </li>
+ <li>
+ <a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctypeless.svg;ss">validate</a> -
+ <a href="http://validator.w3.org/check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/3663-svg-noversion-doctypeless.svg;ss">with v.w.o</a> -
+ <a href="3663-svg-noversion-doctypeless.svg">view</a>:
+ SVG with neither DOCTYPE nor version attribute. The validator may use a default.
+ </li>
+ </ul>
<h4 id="valid_warn">Valid Documents, with Warnings</h4>
<ul>
<li><a href="../../check?uri=http://qa-dev.w3.org/wmvs/HEAD/dev/tests/2342-opensp_type_X.html">validate</a> -
--- NEW FILE: 3663-svg-tiny-11-doctypeless.svg ---
<?xml version="1.0" standalone="yes"?>
<svg xmlns="http://www.w3.org/2000/svg" width="4cm" height="8cm" version="1.1" baseProfile="tiny" >
<ellipse cx="2" cy="4" rx="2" ry="1" />
</svg>
--- NEW FILE: 3663-svg-10-doctype.svg ---
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="5cm" height="4cm"
xmlns="http://www.w3.org/2000/svg">
<desc>Four separate rectangles
</desc>
<rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/>
<rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/>
<rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/>
<rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/>
<!-- Show outline of canvas using 'rect' element -->
<rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm"
fill="none" stroke="blue" stroke-width=".02cm" />
</svg>
--- NEW FILE: 3663-svg-11-doctypeless.svg ---
<?xml version="1.0" standalone="no"?>
<svg width="5cm" height="4cm" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<desc>Four separate rectangles
</desc>
<rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/>
<rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/>
<rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/>
<rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/>
<!-- Show outline of canvas using 'rect' element -->
<rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm"
fill="none" stroke="blue" stroke-width=".02cm" />
</svg>
--- NEW FILE: 3663-svg-11-doctype.svg ---
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="5cm" height="4cm" version="1.1"
xmlns="http://www.w3.org/2000/svg">
<desc>Four separate rectangles
</desc>
<rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/>
<rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/>
<rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/>
<rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/>
<!-- Show outline of canvas using 'rect' element -->
<rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm"
fill="none" stroke="blue" stroke-width=".02cm" />
</svg>
--- NEW FILE: 3663-svg-basic-11-doctypeless.svg ---
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
<title id="test-title">color-prop-01-b</title>
<desc id="test-desc">Test that viewer has the basic capability to process the color property</desc>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>
--- NEW FILE: 3663-svg-noversion-doctype2.svg ---
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="5cm" height="4cm"
xmlns="http://www.w3.org/2000/svg">
<desc>This SVG sample has no version attribute in its root svg element, but has a doctype (SVG 1.0)</desc>
<rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/>
<rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/>
<rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/>
<rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/>
<!-- Show outline of canvas using 'rect' element -->
<rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm"
fill="none" stroke="blue" stroke-width=".02cm" />
</svg>
--- NEW FILE: 3663-svg-tiny-11-doctype.svg ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="tiny" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
<ellipse cx="2" cy="4" rx="2" ry="1" />
</svg>
--- NEW FILE: 3663-svg-noversion-doctypeless.svg ---
<?xml version="1.0" standalone="no"?>
<svg width="5cm" height="4cm" xmlns="http://www.w3.org/2000/svg">
<desc>This SVG sample has no version attribute in its root svg element, nor any doctype</desc>
<rect x="0.5cm" y="0.5cm" width="2cm" height="1cm"/>
<rect x="0.5cm" y="2cm" width="1cm" height="1.5cm"/>
<rect x="3cm" y="0.5cm" width="1.5cm" height="2cm"/>
<rect x="3.5cm" y="3cm" width="1cm" height="0.5cm"/>
<!-- Show outline of canvas using 'rect' element -->
<rect x=".01cm" y=".01cm" width="4.98cm" height="3.98cm"
fill="none" stroke="blue" stroke-width=".02cm" />
</svg>
--- NEW FILE: 3663-svg-basic-11-doctype.svg ---
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="basic" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
<title id="test-title">color-prop-01-b</title>
<desc id="test-desc">Test that viewer has the basic capability to process the color property</desc>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>
Received on Wednesday, 3 October 2007 07:40:05 UTC