tkormann 01/10/18 00:40:29 Modified: samples/tests/resources/svg defs.svg Added: samples/tests/spec/structure useStyling.svg Log: add new example Revision Changes Path 1.6 +80 -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.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- defs.svg 2001/10/18 06:28:46 1.5 +++ defs.svg 2001/10/18 07:40:29 1.6 @@ -14,7 +14,7 @@ <!-- Test description here --> <!-- --> <!-- @author [EMAIL PROTECTED] --> -<!-- @version $Id: defs.svg,v 1.5 2001/10/18 06:28:46 tkormann Exp $ --> +<!-- @version $Id: defs.svg,v 1.6 2001/10/18 07:40:29 tkormann Exp $ --> <!-- ========================================================================= --> <svg width="450" height="500" viewBox="0 0 450 500"> @@ -231,6 +231,85 @@ <use xlink:href="../../spec/structure/useMultipleURI.svg#r1" x="40" y="40" width="80" height="80" style="fill:url(../../spec/structure/useMultipleURI.svg#gold)" /> </g> + +<!-- ###################################################################### --> +<!-- useStyling.svg --> +<!-- ###################################################################### --> + +<style type="text/css"><![CDATA[ + +.gradClass { + fill: url(#extGrad3); +} + +.pattClass { + fill: url(#patternExtReference); +} + +.colorClass { + fill: gold; +} + +.colorOrange { + fill: orange; +} + +]]></style> + +<g id="tree3"> + <!-- ### 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="colorOrange"> + <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="colorClass"/> + <text x="200" y="115" style="text-anchor:middle; fill:black; stroke:none;">explicit</text> + </g> +</g> + +<g id="tree4"> + <!-- ### 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="gradClass"> + <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="pattClass" /> + <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/useStyling.svg Index: useStyling.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: useStyling.svg,v 1.1 2001/10/18 07:40:29 tkormann Exp $ --> <!-- ========================================================================= --> <?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> <!-- ############################### --> <style type="text/css"><![CDATA[ .gradClass { fill: url(#grad); } .colorClass { fill: crimson; } ]]></style> <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#tree3" x="120" y="120" class="colorClass"/> <use xlink:href="../../resources/svg/defs.svg#tree4" x="120" y="300" class="gradClass" /> </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]