Hi Thomas,

The symbol element is one of those that establishes a new viewport.
Have a look at
http://www.w3.org/TR/SVG/coords.html#EstablishingANewViewport

You could use
  <use xlink:href="#cross1" transform="translate(50, 50)" overflow="visible"/>

Patrick


thomas mauch wrote:
Please have a look the following SVG file. It defines two symbols cross1 and cross2 which are then drawn on the canvas. What surprises me is that the cross1 symbol does not render as cross, but only the parts with x>0 and y>0 are shown, like a clipping would occur even in the middle of the page where the symbol is drawn. If I add 10 to each coordinate to circumvent the negative coordinates (which is cross2), it is drawn allright. This behaviour occurs when rendering with the Adobe and the Batik viewer.
 
<?xml version="1.0" encoding="iso-8859-1"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0">
 <defs>
     <symbol id="cross1">
     <line x1="0" y1="-10" x2="0" y2="10" stroke="red" stroke-width="1" />
    <line x1="-10" y1="0" x2="10" y2="0" stroke="blue" stroke-width="1" />
   </symbol>
     <symbol id="cross2">
     <line x1="10" y1="0" x2="10" y2="20" stroke="red" stroke-width="1" />
    <line x1="0" y1="10" x2="20" y2="10" stroke="blue" stroke-width="1" />
   </symbol>
 </defs>
 
  <use xlink:href="#cross1" transform="translate(50, 50)" />
  <use xlink:href="#cross2" transform="translate(100, 50)" />
</svg>
As I'm quite new to SVG, I suppose that I just miss a well-known points.
Thanks in advance.

Thomas


____________________________________________________________
This message may contain legally privileged or confidential
information and is therefore addressed to the named persons only.
The recipient should inform the sender and delete this message,
if he/she is not named as addressee.
The sender disclaims any and all liability for the integrity
and punctuality of this message.
The sender has activated an automatic virus scanning by
Messagelabs, but does not guarantee the virus free
transmission of this message.


Important - This e-mail and the information that it contains may be
confidential, legally privileged and protected by law. Access by the
intended recipient only is authorised. Any liability (in negligence or
otherwise) arising from any third party acting, or refraining from acting,
on any information contained in this e-mail is hereby excluded. If you are
not the intended recipient, please notify the sender immediately and do not
disclose the contents to any other person, use it for any purpose, or store
or copy the information in any medium. Copyright in this e-mail and
attachments created by us belongs to the author and
also asserts the right to be identified as such and object to any misuse.