cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Mieth <>
Subject Re: links in svg
Date Wed, 20 Jul 2005 07:22:16 GMT
On Tue, 19 Jul 2005 13:01:04 -0500 (CDT)
Andres Taborda <> wrote:

> hello list
> some user can help me 
> I have an code of svg and applied an transformation
> to png. my code svg have various LINK by example in 
> <g id="background">
> <rect x="0" y="0" height="195" width="370"  
> style="fill:red"/>
> </g>
> and addition:
> <use xlink:href="#background" x="0" y="15"/>
> after display in the browser not have the reference
> (href).
> some can say how make it.

Hi Andres,

make sure you have the <g> element inside the <defs> element and the
xmlns setup for xlink. Normally you can test your svg's with the
squiggle (svgviewer)  from batik. If Squiggle shows the correct the
svg, the svg should be rendered correct by the svg serializers.  


<svg width="380" height="220">
  <!-- referenced elements should be placed inside 
         the defs-container element  (container for referenced
         elements) -->
   <g id="background">
       <rect x="0" y="0" height="195" width="370"  
 <use xmlns:xlink=""
     xlink:href="#background" x="0" y="15"/>

Best Regards,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message