| <?xml version="1.0" encoding="UTF-8"?> |
| <!--======================================================================--> |
| <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =--> |
| <!--= Institute of Technology, Institut National de Recherche en =--> |
| <!--= Informatique et en Automatique, Keio University). All Rights =--> |
| <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =--> |
| <!--======================================================================--> |
| <!-- NOTE: CVS will automatically update the --> |
| <!-- "$RCSfile: struct-frag-05-t.svg,v $" and "$Revision: 1.13 $" --> |
| <!-- fields in the file. --> |
| <!-- There is no need to update this information. --> |
| <!-- =====================================================================--> |
| <!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"> |
| <SVGTestCase xmlns:testcase="http://www.w3.org/2000/02/svg/testsuite/description/" xmlns="http://www.w3.org/2000/02/svg/testsuite/description/" reviewer="CN" owner="CL" desc="support for namespace prefixes" status="accepted" version="$Revision: 1.13 $" testname="$RCSfile: struct-frag-05-t.svg,v $"> |
| <OperatorScript> |
| <Paragraph>This tests that XML Namespaces are correctly implemented, in that the tuple |
| of local name and namespace URI, rather than the prefix, is important. The first subtest is a |
| group where the namespace prefix s is bound to the SVG namespace and an s:circle is drawn |
| in pale yellow. The same group declares the default namespace to be a non-SVG naespace; the |
| blue circle element in that namespace must not be drawn. |
| </Paragraph> |
| <Paragraph>The second subtest puts the namespace declarations on the elements themselves. The |
| prefix toto is bound to the SVG namespace and the XLink namespace is made the default namespace. |
| Thus, the blue <toto:a href="uri">Valid</toto:a> is a valid link and must be traversable. Select this link, |
| then go back to the test. |
| </Paragraph> |
| <Paragraph> |
| The third subtest has no prefix on the element name 'a' and uses the usual xlink: prefix on the href |
| attribute. However, both the default namespace and the namespace bound to the xlink prefix are |
| dummy namespaces. Not only should the link not be traversable, it must not even display at all. |
| If the text 'Invalid' is displayed, the test fails. |
| </Paragraph> |
| </OperatorScript> |
| </SVGTestCase> |
| <title id="test-title">$RCSfile: struct-frag-05-t.svg,v $</title> |
| <!--======================================================================--> |
| <!--Content of Test Case follows... =====================--> |
| <!--======================================================================--> |
| <g id="test-body-content"> |
| <g xmlns:s="http://www.w3.org/2000/svg" xmlns="http://www.example.org/notsvg"> |
| <s:circle cx="240" cy="180" r="120" fill="#FF6"/> |
| <circle cx="240" cy="180" r="140" fill="#369"/> |
| </g> |
| <text x="240" y="100" text-anchor="middle" font-size="40" fill="#369"> |
| <toto:a dahut:href="resources/linkingToc-t.svg" xmlns:toto="http://www.w3.org/2000/svg" |
| xmlns:dahut="http://www.w3.org/1999/xlink">Valid</toto:a> |
| </text> |
| <text x="240" y="250" text-anchor="middle" font-size="40" fill="#C33"> |
| <a xlink:href="resources/linkingToc-t.svg" xmlns="http://example.org/notsvg" |
| xmlns:xlink="http://example.org/notxlink">Invalid</a> |
| </text> |
| </g> |
| <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.13 $</text> |
| <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| </svg> |