blob: 3d65f4a842d9720a622b1c72ebf323313dba5b1e [file]
<?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">
<!--
Copyright 2001 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- ========================================================================= -->
<!-- Test the 'requiredFeatures' attribute -->
<!-- -->
<!-- @author tkormann@ilog.fr -->
<!-- @version $Id$ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="450" height="500" viewBox="0 0 450 500">
<title>Test the 'requiredFeatures' attribute</title>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="50" class="title">Test the 'requiredFeatures' attribute</text>
<g style="fill:#eee; stroke:black">
<rect x="50" y="80" width="360" height="20" />
<rect x="30" y="100" width="20" height="85" />
<rect x="30" y="185" width="20" height="85" />
<rect x="30" y="270" width="20" height="85" />
<rect x="30" y="355" width="20" height="85" />
</g>
<g style="fill:none; stroke:black">
<rect x="50" y="80" width="360" height="360" />
<line x1="170" y1="80" x2="170" y2="440" />
<line x1="290" y1="80" x2="290" y2="440" />
<line x1="50" y1="185" x2="410" y2="185" />
<line x1="50" y1="270" x2="410" y2="270" />
<line x1="50" y1="355" x2="410" y2="355" />
</g>
<g style="fill:black; text-anchor:middle;">
<text x="110" y="94">default</text>
<text x="230" y="94">org.w3c.svg.static</text>
<text x="350" y="94">invalid</text>
<text x="0" y="0" transform="translate(44, 145) rotate(-90)">Graphic Obj.</text>
<text x="0" y="0" transform="translate(44, 230) rotate(-90)">&lt;svg></text>
<text x="0" y="0" transform="translate(44, 315) rotate(-90)">&lt;g></text>
<text x="0" y="0" transform="translate(44, 400) rotate(-90)">&lt;use></text>
</g>
<defs>
</defs>
<!-- ####################################################################################### -->
<g transform="translate(60, 110)">
<g>
<rect x="0" y="0" width="30" height="20" style="fill:crimson" />
<circle cx="50" cy="10" r="10" style="fill:orange" />
<ellipse cx="85" cy="10" rx="15" ry="10" style="fill:gold" />
</g>
<g style="stroke-width:3; fill:none">
<line x1="0" y1="25" x2="30" y2="45" style="stroke:crimson" />
<polyline points="35 25 45 42 55 25 65 42" style="stroke:orange" />
<polygon points="70 25 80 42 90 25 100 42" style="fill: gold" />
</g>
<g style="stroke-width:3; fill:none">
<path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:gold" />
<image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" />
<text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle">text</text>
</g>
</g>
<g transform="translate(180, 110)">
<g>
<rect x="0" y="0" width="30" height="20" style="fill:crimson" requiredFeatures="org.w3c.svg.static" />
<circle cx="50" cy="10" r="10" style="fill:orange" requiredFeatures="org.w3c.svg.static"/>
<ellipse cx="85" cy="10" rx="15" ry="10" style="fill:gold" requiredFeatures="org.w3c.svg.static"/>
</g>
<g style="stroke-width:3; fill:none">
<line x1="0" y1="25" x2="30" y2="45" style="stroke:crimson" requiredFeatures="org.w3c.svg.static"/>
<polyline points="35 25 45 42 55 25 65 42" style="stroke:orange" requiredFeatures="org.w3c.svg.static"/>
<polygon points="70 25 80 42 90 25 100 42" style="fill: gold" requiredFeatures="org.w3c.svg.static"/>
</g>
<g style="stroke-width:3; fill:none">
<path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:gold" requiredFeatures="org.w3c.svg.static"/>
<image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" requiredFeatures="org.w3c.svg.static"/>
<text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle" requiredFeatures="org.w3c.svg.static">text</text>
</g>
</g>
<g transform="translate(300, 110)">
<g>
<rect x="0" y="0" width="30" height="20" style="fill:crimson" requiredFeatures="invalid"/>
<circle cx="50" cy="10" r="10" style="fill:orange" requiredFeatures="invalid"/>
<ellipse cx="85" cy="10" rx="15" ry="10" style="fill:gold" requiredFeatures="invalid"/>
</g>
<g style="stroke-width:3; fill:none">
<line x1="0" y1="25" x2="30" y2="45" style="stroke:crimson" requiredFeatures="invalid"/>
<polyline points="35 25 45 42 55 25 65 42" style="stroke:orange" requiredFeatures="invalid"/>
<polygon points="70 25 80 42 90 25 100 42" style="fill: gold" requiredFeatures="invalid"/>
</g>
<g style="stroke-width:3; fill:none">
<path d="M0 60C5 55 10 55 15 60C20 65 25 65 30 60" style="stroke:gold" requiredFeatures="invalid"/>
<image xlink:href="../../resources/images/tde.jpg" x="35" y="50" width="30" height="20" requiredFeatures="invalid"/>
<text x="85" y="65" style="fill:black; stroke:none; text-anchor:middle" requiredFeatures="invalid">text</text>
</g>
</g>
<!-- ####################################################################################### -->
<g style="fill:crimson">
<svg x="52" y="187" width="116" height="81">
<rect x="0" y="0" width="100%" height="100%" />
</svg>
<svg x="172" y="187" width="116" height="81" requiredFeatures="org.w3c.svg.static">
<rect x="0" y="0" width="100%" height="100%" />
</svg>
<svg x="292" y="187" width="116" height="81" requiredFeatures="invalid">
<rect x="0" y="0" width="100%" height="100%" />
</svg>
</g>
<!-- ####################################################################################### -->
<g style="fill:crimson" transform="translate(0 85)">
<g>
<rect x="52" y="187" width="116" height="81" />
</g>
<g>
<rect x="172" y="187" width="116" height="81" requiredFeatures="org.w3c.svg.static" />
</g>
<g>
<rect x="292" y="187" width="116" height="81" requiredFeatures="invalid" />
</g>
</g>
<!-- ####################################################################################### -->
<defs>
<rect id="use" x="0" y="0" width="116" height="81" style="fill:crimson"/>
</defs>
<g>
<use xlink:href="#use" x="52" y="357" />
<use xlink:href="#use" x="172" y="357" requiredFeatures="org.w3c.svg.static" />
<use xlink:href="#use" x="292" y="357" requiredFeatures="invalid" />
</g>
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
</svg>