You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Stephane Hillion <St...@sophia.inria.fr> on 2000/11/12 20:47:03 UTC

containing a

Vincent,

I fixed the problem with <a> elements which do not work with <use>.
It will not have the behaviour you expected anyway. To do your thumbail
page you should write things like that:

<svg width="450" height="500">
  <!-- The <svg> element in a symbol to be able to resize it -->
  <symbol id="doc1" viewBox="0 0 450 500">
    <use xlink:href="filterRegions.svg#body"/>
  </symbol>

  <!-- Use the previous symbol ... -->
  <use xlink:href="#doc1" x="100" y="100" width="45" height="50"/>

  <!-- Then create an anchor which contains a transparent <rect> to grab
the events -->
  <a xlink:href="filterRegions.svg">
    <rect x="100" y="100" width="45" height="50"
style="fill-opacity:0"/>
  </a>
</svg>



Re: containing a

Posted by Vincent Hardy <vi...@eng.sun.com>.
Merci a lot!
V.

Stephane Hillion wrote:
> 
> Vincent,
> 
> I fixed the problem with <a> elements which do not work with <use>.
> It will not have the behaviour you expected anyway. To do your thumbail
> page you should write things like that:
> 
> <svg width="450" height="500">
>   <!-- The <svg> element in a symbol to be able to resize it -->
>   <symbol id="doc1" viewBox="0 0 450 500">
>     <use xlink:href="filterRegions.svg#body"/>
>   </symbol>
> 
>   <!-- Use the previous symbol ... -->
>   <use xlink:href="#doc1" x="100" y="100" width="45" height="50"/>
> 
>   <!-- Then create an anchor which contains a transparent <rect> to grab
> the events -->
>   <a xlink:href="filterRegions.svg">
>     <rect x="100" y="100" width="45" height="50"
> style="fill-opacity:0"/>
>   </a>
> </svg>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: batik-dev-help@xml.apache.org