W3C home > Mailing lists > Public > www-svg@w3.org > May 2006

Re: Linking from SVG to XML (URI/Anchor elements problem #)

From: Erik Dahlström <ed@opera.com>
Date: Thu, 18 May 2006 17:08:11 +0200
To: "Johan Nilsson" <johan.nilsson@citec.se>, www-svg@w3.org
Message-ID: <op.s9q5nxemgqiacl@gnorps.palace.opera.no>

On Thu, 18 May 2006 09:20:55 +0200, Johan Nilsson <johan.nilsson@citec.se>  
wrote:

> In a SVG I have links leading to several different xml files. In some  
> cases,
> I include a URI/Anchor element and when I click that link I expect to be
> "scrolled down" to the place in the XML file where I have the specific
> anchor element/id.
> This works without problems while working on a web server. It does,  
> however,
> not work when I run the SVG file locally on my computer   
> (C:/SVG/test.svg).
> Example:
> Link in SVG file: <a xlink:href="test.xml#testing">
> Destination in XML file: <rubrik id="testing">Heading </rubrik>
> When I click the link locally, I am forwarded to the xml-file, only not
> "scrolled down". When I look at the path, the "#testing" part is not
> included. So, it appears that part is automatically stripped for some
> reason. Any idea on how to solve this problem?

Taking this as an example:
<svg xmlns="http://www.w3.org/2000/svg"  
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
	<a  
xlink:href="http://www.w3.org/TR/SVGMobile12/animate.html#TargetElement">
		<rect x="0" y="0" width="150" height="150" fill="red"/>
	</a>
</svg>

Works fine in Opera 8 or later.
/ed

-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Received on Thursday, 18 May 2006 15:10:29 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:34 GMT