ok, so I'm doing some testing, and the following code gives you a clickable
box, if placed inside a xwiki document.
{{html wiki="false" clean="false"}}
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<a xlink:href="http://dc1/bin/view/Main/" target="_top">
<rect x="10" y="20" width="75"
height="30"
style="stroke: #333366; fill: #6666cc"/>
</a>
</svg>
{{/html}}
But the links have to be absolute addresses, not wiki links. But it proves
that raw svg images with links do work. I can click it and it takes me to
the main page. So what is wrong with the svg macro? why does it mess up the
links?
Dan
-----Original Message-----
From: Daniel Ullfig
Sent: Tuesday, April 12, 2016 4:53 PM
To: users(a)xwiki.org
Subject: Re: [xwiki-users] hyperlinks in SVG images
oops. the example doesn't come out in the email; here it is.
{{svg width="640" height="480"}}
<svg width="640" height="480"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink">
<g>
<title>Layer 1</title>
<rect height="153" width="339" y="173.1"
x="234.599"
transform="rotate(-21.6429 404.099 249.6)" stroke-width="5"
stroke="#000000"
fill="#aa0000" id="svg_1"/>
<a xlink:href="http://www.google.com" id="svg_3">
<text xml:space="preserve" y="242.1" x="374.6"
transform="rotate(-21.3763
401.6 244.51) matrix(1 0 0 1 27 10)" text-anchor="middle"
stroke-width="0"
stroke="#000000" fill="#000000" font-size="24"
font-family="serif"
id="svg_2">This is an SVG Drawing</text>
</a>
</g>
</svg>
{{/svg}}
As you can see, the link (currently to google) is in there, but you can't
click on it.
Dan
-----Original Message-----
From: dullfig
Sent: Tuesday, April 12, 2016 1:47 PM
To: users(a)xwiki.org
Subject: [xwiki-users] hyperlinks in SVG images
Hello:
hyperlinks don't work in svg images. I have the following example on a page:
but you cannot click on it. You should be able to. Does it have something to
do with how xwiki renders images? or is the problem in the svg macro? I
really would like this to work.
Dan
--
View this message in context:
http://xwiki.475771.n2.nabble.com/hyperlinks-in-SVG-images-tp7598960.html
Sent from the XWiki- Users mailing list archive at
Nabble.com.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users