Hi All,
I am new to SVG and have the following problem . I am using ASV3
browser. The first code works when the polyline is refered withing
the same SVG file using the <use> Element but the second code
doesn't work .In the second code I am defining the polylines in one
SVG file and trying to refer them in a different SVG file.
FIRST CODE:
<defs>
<g id="Roads" > <polyline points="20 40 60 80"/> </g>
</defs>
<g id="Layers" type="Utilities" transform="translate(0,100) scale(1,-
1)">
<use x="0" y="0" style="stroke:red;stroke-
width:20;fill:none" xlink:href="#Roads"/>
<use x="0" y="0" style="stroke:yellow;stroke-
width:10;fill:none" xlink:href="#Roads" />
<use x="0" y="0" style="stroke:green;stroke-
width:5;fill:none" xlink:href="#Roads" />
</g>
SECOND CODE :
First SVG FILE NAME : SymbolLib4.svg
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!--Look for
root element--><!--start of svg-->
<!DOCTYPE svg
PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/TR/2001/REC-
SVG-20010904/DTD/svg11.dtd">
<svg width="1020" viewBox="0 0 100 100" height="677" x="0" y="0"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<g id="Roads" >
<polyline points="20 40 60 80"/>
</g>
</defs>
</svg>
SECOND SVG FILE used for refering the polylines :
<g id="Layers" type="Utilities" transform="translate(0,100) scale(1,-
1)">
<use x="0" y="0" style="stroke:red;stroke-
width:20;fill:none" xlink:href="SymbolLib4.svg#Roads"/>
<use x="0" y="0" style="stroke:yellow;stroke-
width:10;fill:none" xlink:href="SymbolLib4.svg#Roads" />
<use x="0" y="0" style="stroke:green;stroke-
width:5;fill:none" xlink:href="SymbolLib4.svg#Roads" />
</g>
Am I Missing something , any suggestion is greatly appreciated.
Thanks
Krinat
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~->
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/