tkormann 01/10/18 01:52:04
Modified: samples/tests/resources/svg defs.svg
Added: samples/tests/resources/style useStylesheet.css
useStylesheet2.css
samples/tests/spec/structure useStylesheet.svg
Log:
add a new test
Revision Changes Path
1.1 xml-batik/samples/tests/resources/style/useStylesheet.css
Index: useStylesheet.css
===================================================================
/* for the defs.svg part */
.colorClassStylesheet {
fill: gold;
}
.pattClassStylesheet {
fill: url(../svg/defs.svg#patternExtReference);
}
.gradClassStylesheet {
fill: url(../svg/defs.svg#extGrad3);
}
.colorOrangeStylesheet {
fill: orange;
}
1.1 xml-batik/samples/tests/resources/style/useStylesheet2.css
Index: useStylesheet2.css
===================================================================
/* for the useStylesheet.svg part */
.gradClass2 {
fill: url(../../spec/structure/useStylesheet.svg#grad);
}
.colorClass2 {
fill: crimson;
}
1.7 +61 -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.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- defs.svg 2001/10/18 07:40:29 1.6
+++ defs.svg 2001/10/18 08:52:03 1.7
@@ -14,9 +14,11 @@
<!-- Test description here -->
<!-- -->
<!-- @author [EMAIL PROTECTED] -->
-<!-- @version $Id: defs.svg,v 1.6 2001/10/18 07:40:29 tkormann Exp $ -->
+<!-- @version $Id: defs.svg,v 1.7 2001/10/18 08:52:03 tkormann Exp $ -->
<!-- ========================================================================= -->
+<?xml-stylesheet type="text/css" href="../style/useStylesheet.css" ?>
+
<svg width="450" height="500" viewBox="0 0 450 500">
<text x="225" y="50" class="title">Not a test - only contains definitions</text>
@@ -310,6 +312,64 @@
</g>
</g>
+
+<!-- ###################################################################### -->
+<!-- useStylesheet.svg -->
+<!-- ###################################################################### -->
+
+<g id="tree5">
+ <!-- ### decoration ### -->
+ <line x1="100" y1="0" x2="0" y2="75" style="stroke:black; fill:none" />
+ <line x1="100" y1="0" x2="100" y2="75" style="stroke:black; fill:none" />
+ <line x1="100" y1="0" x2="200" y2="75" style="stroke:black; fill:none" />
+ <circle cx="100" cy="0" r="25" style="fill:#eee;" />
+ <text x="100" y="6" style="fill:black; text-anchor:middle;
font-size:18"><g></text>
+
+ <!-- ### color inherited inside this document ###-->
+ <g class="colorOrangeStylesheet">
+ <circle cx="0" cy="75" r="25" />
+ <text x="0" y="115" style="text-anchor:middle; fill:black;
stroke:none;">local</text>
+ </g>
+
+ <!-- ### color inherited from the use element ###-->
+ <g>
+ <circle cx="100" cy="75" r="25" />
+ <text x="100" y="115" style="text-anchor:middle; fill:black;
stroke:none;">inherited</text>
+ </g>
+
+ <!-- ### color defined on the circle ###-->
+ <g>
+ <circle cx="200" cy="75" r="25" class="colorClassStylesheet"/>
+ <text x="200" y="115" style="text-anchor:middle; fill:black;
stroke:none;">explicit</text>
+ </g>
+</g>
+
+<g id="tree6">
+ <!-- ### decoration ### -->
+ <line x1="100" y1="0" x2="0" y2="75" style="stroke:black; fill:none" />
+ <line x1="100" y1="0" x2="100" y2="75" style="stroke:black; fill:none" />
+ <line x1="100" y1="0" x2="200" y2="75" style="stroke:black; fill:none" />
+ <circle cx="100" cy="0" r="25" style="fill:#eee;" />
+ <text x="100" y="6" style="fill:black; text-anchor:middle;
font-size:18"><g></text>
+
+ <!-- ### gradient inherited inside this document ###-->
+ <g class="gradClassStylesheet">
+ <circle cx="0" cy="75" r="25" />
+ <text x="0" y="115" style="text-anchor:middle; fill:black;
stroke:none;">local</text>
+ </g>
+
+ <!-- ### gradient inherited from the use element ###-->
+ <g>
+ <circle cx="100" cy="75" r="25" />
+ <text x="100" y="115" style="text-anchor:middle; fill:black;
stroke:none;">inherited</text>
+ </g>
+
+ <!-- ### pattern defined on the circle ###-->
+ <g>
+ <circle cx="200" cy="75" r="25" class="pattClassStylesheet" />
+ <text x="200" y="115" style="text-anchor:middle; fill:black;
stroke:none;">explicit</text>
+ </g>
+</g>
</defs>
1.1 xml-batik/samples/tests/spec/structure/useStylesheet.svg
Index: useStylesheet.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. -->
<!-- ========================================================================= -->
<!-- ========================================================================= -->
<!-- Test use and styling -->
<!-- -->
<!-- @author [EMAIL PROTECTED] -->
<!-- @version $Id: useStylesheet.svg,v 1.1 2001/10/18 08:52:04 tkormann Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="../../resources/style/useStylesheet2.css" ?>
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
<svg width="450" height="500" viewBox="0 0 450 500">
<title>Test use and styling using <style></title>
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="60" class="title"><use> and styling using <style></text>
<text x="225" y="80" style="text-anchor:middle; font-size:12;
font-style:italic">This file is using the defs.svg file to get the external
resources</text>
<!-- ############################### -->
<defs>
<radialGradient id="grad">
<stop style="stop-color:gold" offset="0" />
<stop style="stop-color:crimson" offset="1" />
</radialGradient>
</defs>
<use xlink:href="../../resources/svg/defs.svg#tree5" x="120" y="120"
class="colorClass2"/>
<use xlink:href="../../resources/svg/defs.svg#tree6" x="120" y="300"
class="gradClass2" />
</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]