cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Mieth <simon.mi...@gmx.de>
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 <antaborda@yahoo.com> 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.  

example:

<svg width="380" height="220">
 <defs>
  <!-- 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"  
          style="fill:red"/>
   </g>
 </defs>
 <use xmlns:xlink="http://www.w3.org/1999/xlink"
     xlink:href="#background" x="0" y="15"/>
</svg>


Best Regards,

Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message