I have a document which embeds an SVG file that displays fine in
Mozilla or IE when dragged into a browser but displays the following
message in Mozilla through my apache server (IE is OK)
XML Parsing Error: prefix not bound to a namespace
A quick bit of background. The aim is to create SVG symbols on the fly
(in PHP) to layer over a jpg. So the svg needs to be transparent,
hence the embed bit as it was a way of making transparency work.
I have put example code below and example SVG content.
I'm presuming this is an apache/standards thing but can't work it out.
Any ideas greatly appreciated plus if there is a better way of
achieving transparency.
TIA
EXAMPLE CODE
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN'
'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
<head>
<title>Map</title>
<link href="emt2.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
</head>
<body>
<div class="header">Test Map - Level 3
</div>
<div class="maparea">
<div class="map">
<embed class="svggraphic" src="mapitems.svg" wmode="transparent"
height="560" width="560" style="position:absolute;">
<div class="buttonrow">
<div class="mapsegment"><a href="2_2_2.htm"><img alt ="example text
"class="mapimage" src="Maps/3_1_1.jpg" border="0"></a>
</div>
</div>
</div>
</div>
<div class="footer"></div>
</body>
</html>
EXAMPLE SVG CONTENT
<svg xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ev="http://www.w3.org/2001/xml-events">
<a id="test1" xlink:href="http://www.google.com"><circle cx="100"
cy="100" r="5" fill="red"/></a>
<a id="test2" xlink:href="http://www.google.com"><circle cx="200"
cy="200" r="5" fill="red"/></a>
<a id="test3" xlink:href="http://www.google.com"><circle cx="300"
cy="300" r="5" fill="red"/></a>
<a id="test4" xlink:href="http://www.google.com"><circle cx="400"
cy="400" r="5" fill="red"/></a>
</svg>
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/