W3C home > Mailing lists > Public > www-svg@w3.org > March 2003

SVG - links?

From: Derek Hohls <DHohls@csir.co.za>
Date: Thu, 06 Mar 2003 10:21:32 +0200
Message-Id: <se672135.023@CS-IMO.CSIR.CO.ZA>
To: <www-svg@w3.org>
I am relatively new to SVG - I have done some basic things
to try it out, but need to understand some of the power in its
ability to create 'reusable' graphics.  However, I am unable to
get the xlink in the simple exampe below to work (rather, it does
not display properly when loaded into my IE browser, using the 
Adobe plugin as neither the second or third xlink display the 
rectangles with the width and height specified, although they are
at the correct y-position) - any help  would be  appreciated!
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
<svg width="8cm" height="6cm"
 <desc>Local URI references within ancestor's 'defs' element.</desc>
  <linearGradient id="Gradient01">
   <stop offset="20%" stop-color="#39F" />
   <stop offset="90%" stop-color="#F3F" />
  <rect id="shade1" x="1cm" y="1cm" width="6cm" height="1cm"
fill="url(#Gradient01)" />
  <rect id="shade2" x="1cm" y="1cm" width="6cm" height="1cm"
fill="url(#Gradient01)" />
  <rect id="shade3" x="1cm" y="1cm" width="6cm" height="1cm"
fill="url(#Gradient01)" />
 <!-- test xlink -->
 <use xlink:href="#shade1"/>
 <use xlink:href="#shade2" y="1.1cm" width="2cm"  />
 <use xlink:href="#shade3" y="2.2cm" height="4cm"  />
 <!-- Show outline of canvas using 'rect' element -->
 <rect x=".01cm" y=".01cm" width="7.98cm" height="5.98cm"
   fill="none" stroke="blue" stroke-width=".02cm" />

This message has been scanned for viruses and dangerous content by 
MailScanner, and is believed to be clean.

"The CSIR exercises no editorial control over E-mail messages and/or
attachments thereto/links referred to therein originating in the
organisation and the views in this message/attachments thereto are
therefore not necessarily those of the CSIR and/or its employees.  
The sender of this e-mail is, moreover, in terms of the CSIR's Conditions
of Service, subject to compliance with the CSIR's internal E-mail and 
Internet Policy."
Received on Thursday, 6 March 2003 03:31:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:53:57 UTC