On Tue, 19 Jul 2005 13:01:04 -0500 (CDT)
Andres Taborda <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to