Hi Omar,
You will need to change the & to & inside the xlink:href=
quotes. Otherwise the xml schema is trying to interpret them in an xml way
instead of a url encoded way. XML escaped characters include:
>
< <
& &
' &pos;
" "
I'm afraid for the earlier example I just copied the "save current
state.." which converts escaped & back to &
Here is an example (note: switching from jpg to png with Transparent=true
will allow WMS images to stack on eachother unless the WMS output has 100%
cover). This will work from either an IE with Adobe SVG Viewer plugin or
Firefox with its native svg rendering.
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
"http://www.w3.org/TR/SVG/DTD/svg10.dtd">
<svg preserveAspectRatio="xMinYMin"
viewBox="-120.52631568908691 -42.21052646636963 6.9298248291015625
6.842104911804199"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg" >
<title>WMSDCW;Bathymetry,Countries,Topography,Hillshading</title>
<g id="canvas">
<g id="WMS">
<image id="img" x="-120.52631568908691" y="-42.21052646636963"
width="6.9298248291015625" height="6.842104911804199"
xlink:href="http://www2.demis.nl/wms/wms.asp?wms=WorldMap&service=WMS&am
p;ServiceName=WMS&request=GetMap&layers=Bathymetry,Countries,Topogra
phy,Hillshading&format=image/png&transparent=TRUE&srs=EPSG:4326&
amp;bbox=-120.52631568908691,35.36842155456543,-113.59649085998535,42.210526
46636963&WIDTH=1000&HEIGHT=987">
</image>
</g>
</g><!-- canvas -->
</svg>
rkgeorge
-----Original Message-----
From: Omar Zevallos [mailto:omzeta@anonymised.com]
Sent: Monday, March 13, 2006 5:52 PM
To: Randy George
Subject: Re: [Geoserver-users] Viewer with Geoserver
Hi Randy, I have problems by codifying a xlink:href in a SVG document. the
segment code is the following:
<image width="150" height="100px"
xlink:href="http://localhost:8080/gs1.3rc7/wms?bbox=211439.66,8175400,243360
.36000000001,8198200.5&request=GetMap&layers=departamento,provincia,distrito
&width=150&height=100&srs=EPSG:32719&styles=departamento,provincia,distrito&
Format=image/jpeg"/>
this code throws "not well-formed" exception.
weeks ago, you sent an example to me to use the <image> Element, but I have
problems with disallowed characters.
Please help.
Regards