tkormann 01/10/15 04:34:59
Modified: samples/tests/resources/svg defs.svg
samples/tests/spec/structure useTargets.svg
Added: samples/tests/spec/structure useMultiple.svg
Log:
add a new test for multiple use usage
Revision Changes Path
1.3 +21 -1 xml-batik/samples/tests/resources/svg/defs.svg
Index: defs.svg
===================================================================
RCS file: /home/cvs/xml-batik/samples/tests/resources/svg/defs.svg,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- defs.svg 2001/10/15 09:33:44 1.2
+++ defs.svg 2001/10/15 11:34:58 1.3
@@ -14,7 +14,7 @@
<!-- Test description here -->
<!-- -->
<!-- @author [EMAIL PROTECTED] -->
-<!-- @version $Id: defs.svg,v 1.2 2001/10/15 09:33:44 tkormann Exp $ -->
+<!-- @version $Id: defs.svg,v 1.3 2001/10/15 11:34:58 tkormann Exp $ -->
<!-- ========================================================================= -->
<svg width="450" height="500" viewBox="0 0 450 500">
@@ -176,6 +176,26 @@
<g id="extOther" style="stroke:crimson; stroke-width:4">
<rect x="-50" y="-50" width="100" height="100" style="fill:gold; stroke:none"/>
<circle cx="0" cy="0" r="25"/>
+</g>
+
+
+<!-- ###################################################################### -->
+<!-- useMultiple.svg -->
+<!-- ###################################################################### -->
+
+
+<rect id="extR1" x="0" y="0" width="80" height="80" />
+
+<g id="u21" style="fill:orange">
+ <rect x="0" y="0" width="80" height="80" fill="crimson" />
+ <use xlink:href="#extR1" x="20" y="20" width="80" height="80" />
+ <use xlink:href="#extR1" x="40" y="40" width="80" height="80"
style="fill:gold" />
+</g>
+
+<g id="u22" style="fill:orange">
+ <rect x="0" y="0" width="80" height="80" fill="crimson" />
+ <use xlink:href="../../spec/structure/useMultiple.svg#r1" x="20" y="20"
width="80" height="80" />
+ <use xlink:href="../../spec/structure/useMultiple.svg#r1" x="40" y="40"
width="80" height="80" style="fill:gold" />
</g>
</defs>
1.2 +2 -2 xml-batik/samples/tests/spec/structure/useTargets.svg
Index: useTargets.svg
===================================================================
RCS file: /home/cvs/xml-batik/samples/tests/spec/structure/useTargets.svg,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- useTargets.svg 2001/10/15 09:33:44 1.1
+++ useTargets.svg 2001/10/15 11:34:59 1.2
@@ -14,10 +14,10 @@
<!-- Alternate stylesheets -->
<!-- -->
<!-- @author [EMAIL PROTECTED] -->
-<!-- @version $Id: useTargets.svg,v 1.1 2001/10/15 09:33:44 tkormann Exp $ -->
+<!-- @version $Id: useTargets.svg,v 1.2 2001/10/15 11:34:59 tkormann Exp $ -->
<!-- ========================================================================= -->
-<?xml-stylesheet type="text/css" href="../../style/test.css" ?>
+<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
<svg width="450" height="500" viewBox="0 0 450 500">
<title><use> targets</title>
1.1 xml-batik/samples/tests/spec/structure/useMultiple.svg
Index: useMultiple.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">
<!-- ========================================================================= -->
<!-- Copyright (C) The Apache Software Foundation. All rights reserved. -->
<!-- -->
<!-- This software is published under the terms of the Apache Software License -->
<!-- version 1.1, a copy of which has been included with this distribution in -->
<!-- the LICENSE file. -->
<!-- ========================================================================= -->
<!-- ========================================================================= -->
<!-- Multiple use combined (external and internal) -->
<!-- -->
<!-- @author [EMAIL PROTECTED] -->
<!-- @version $Id: useMultiple.svg,v 1.1 2001/10/15 11:34:59 tkormann Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
<svg width="450" height="500" viewBox="0 0 450 500">
<title>Multiple <use></title>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="50" class="title">Multiple <use></text>
<text x="225" y="70" style="text-anchor:middle; font-size:12;
font-style:italic">This file is using the defs.svg file to get the external
resources</text>
<!-- ############################### -->
<g id="board" style="fill:none; stroke:black;">
<rect x="75" y="100" width="150" height="20" style="fill:#eee"/>
<rect x="225" y="100" width="150" height="20" style="fill:#eee"/>
<rect x="55" y="120" width="20" height="150" style="fill:#eee"/>
<rect x="55" y="270" width="20" height="150" style="fill:#eee"/>
<rect x="75" y="120" width="150" height="300"/>
<rect x="225" y="120" width="150" height="300"/>
<line x1="75" y1="270" x2="375" y2="270" />
<g style="font-size:12; text-anchor:middle; fill:black; stroke:none">
<text x="150" y="114"><use></text>
<text x="300" y="114">External <use></text>
<text x="0" y="0" transform="translate(70 195)
rotate(-90)"><use></text>
<text x="0" y="0" transform="translate(70 345) rotate(-90)">External
<use></text>
</g>
</g>
<defs>
<rect id="r1" x="0" y="0" width="80" height="80" />
<g id="u11" style="fill:orange">
<rect x="0" y="0" width="80" height="80" fill="crimson" />
<use xlink:href="#r1" x="20" y="20" width="80" height="80" />
<use xlink:href="#r1" x="40" y="40" width="80" height="80" style="fill:gold" />
</g>
<g id="u12" style="fill:orange">
<rect x="0" y="0" width="80" height="80" fill="crimson" />
<use xlink:href="../../resources/svg/defs.svg#extR1" x="20" y="20" width="80"
height="80" />
<use xlink:href="../../resources/svg/defs.svg#extR1" x="40" y="40" width="80"
height="80" style="fill:gold" />
</g>
</defs>
<use xlink:href="#u11" x="90" y="130" />
<use xlink:href="../../resources/svg/defs.svg#u21" x="240" y="130" />
<use xlink:href="#u12" x="90" y="280" />
<use xlink:href="../../resources/svg/defs.svg#u22" x="240" y="280" />
</g>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
</svg>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]