You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andres Taborda <an...@yahoo.com> on 2005/07/19 20:01:04 UTC

links in svg

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.
 


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.espanol.yahoo.com/ 

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


Re: links in svg

Posted by Simon Mieth <si...@gmx.de>.
On Tue, 19 Jul 2005 13:01:04 -0500 (CDT)
Andres Taborda <an...@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