tkormann 01/10/18 07:43:36 Modified: samples/tests/resources/svg defs.svg Added: samples/tests/spec/structure xmlBaseStyling.svg Log: add new test for xml:base and CSS Revision Changes Path 1.9 +11 -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.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- defs.svg 2001/10/18 09:05:17 1.8 +++ defs.svg 2001/10/18 14:43:36 1.9 @@ -14,7 +14,7 @@ <!-- Test description here --> <!-- --> <!-- @author [EMAIL PROTECTED] --> -<!-- @version $Id: defs.svg,v 1.8 2001/10/18 09:05:17 tkormann Exp $ --> +<!-- @version $Id: defs.svg,v 1.9 2001/10/18 14:43:36 tkormann Exp $ --> <!-- ========================================================================= --> <?xml-stylesheet type="text/css" href="../style/subdir/useStylesheet.css" ?> @@ -370,6 +370,16 @@ <text x="200" y="115" style="text-anchor:middle; fill:black; stroke:none;">explicit</text> </g> </g> + + +<!-- ###################################################################### --> +<!-- xmlBaseStyling.svg --> +<!-- ###################################################################### --> + +<g id="xmlBaseStylingElement"> + <circle cx="0" cy="0" r="30" /> +</g> + </defs> 1.1 xml-batik/samples/tests/spec/structure/xmlBaseStyling.svg Index: xmlBaseStyling.svg =================================================================== <!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. --> <!-- ====================================================================== --> <!-- ====================================================================== --> <!-- xml:base processing test. --> <!-- --> <!-- @author [EMAIL PROTECTED] --> <!-- @version $Id: xmlBaseStyling.svg,v 1.1 2001/10/18 14:43:36 tkormann Exp $ --> <!-- ====================================================================== --> <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> <svg id="body" width="450" height="500" viewBox="0 0 450 500"> <title>Test xml:base and styling</title> <!-- ============================================================= --> <!-- Test content --> <!-- ============================================================= --> <g id="testContent"> <text x="225" y="30" class="title">Test xml:base and styling</text> <text x="225" y="50" 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" xml:base="../../resources/svg/" ><![CDATA[ .gradClass { fill: url(defs.svg#extGrad1); } ]]></style> <defs> <g id="board"> <rect x="0" y="0" width="80" height="80" style="stroke:black; fill:none"/> <rect x="80" y="0" width="300" height="80" style="stroke:black; fill:#eee"/> </g> </defs> <use xlink:href="#board" x="40" y="70" /> <use xlink:href="#board" x="40" y="150" /> <use xlink:href="#board" x="40" y="230" /> <use xlink:href="#board" x="40" y="310" /> <use xlink:href="#board" x="40" y="390" /> <!-- ############################### --> <!-- ############################### --> <g> <use xlink:href="../../resources/svg/defs.svg#xmlBaseStylingElement" x="80" y="110" class="gradClass"/> <text x="130" y="90">xml:base on <style></text> <text x="130" y="104">the base URI is: ../../resources/svg/</text> </g> <g xml:base="../../resources/svg/"> <use xlink:href="defs.svg#xmlBaseStylingElement" x="80" y="190" style="fill:url(defs.svg#extGrad1)" /> <text x="130" y="170">xml:base on <g> enclosing the <use></text> <text x="130" y="184">the base URI is: ../../resources/svg/</text> </g> <g xml:base="../../resources/svg/defs.svg"> <use xlink:href="#xmlBaseStylingElement" x="80" y="270" style="fill:url(#extGrad1)" /> <text x="130" y="250">xml:base on <g> enclosing the <use></text> <text x="130" y="264">the base URI is: ../../resources/svg/defs.svg</text> </g> <g xml:base="../../resources/svg/"> <g xml:base="defs.svg"> <use xlink:href="#xmlBaseStylingElement" x="80" y="350" style="fill:url(#extGrad1)" /> </g> <text x="130" y="330">xml:base on <g> enclosing a <g></text> <text x="130" y="344">the base URI is: ../../resources/svg/</text> <text x="130" y="363">xml:base on enclosed <g> enclosing the <use></text> <text x="130" y="377">the base URI is: defs.svg</text> </g> <g xml:base="../../resources/svg/"> <use xml:base="defs.svg" xlink:href="#xmlBaseStylingElement" x="80" y="430" style="fill:url(#extGrad1)" /> <text x="130" y="410">xml:base on <g> enclosing the <use></text> <text x="130" y="424">the base URI is: ../../resources/svg/</text> <text x="130" y="443">xml:base on the <use></text> <text x="130" y="457">the base URI is: defs.svg</text> </g> </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]