I understand that the error is saying that I need to have a
matching pair of same entity tags, but I simply can't figure
out where I went wrong. Would appreciate it if someone could
help me by taking a look at the messy chunk and letting me
know where went wrong. A dozen thanks!
Regards,
Lee Wai See
Hey,
You're referencing undeclared namespaces. "<ogc:PropertyName>" for
example. You have to declare the ogc namespace in the
StyledLayerDescriptor tag. Second, you haven't declared the default
namespace, and I'm not sure geoserver minds about that, but you should
probably do it anyway. The tag should look something like this:
<StyledLayerDescriptor version="1.0.0"
xmlns="http://www.opengis.net/sld"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/sld
StyledLayerDescriptor.xsd">
Also, in my experience I've found that geoserver tends to like it more
when all the namespaces are declared as above, and then referenced in
shorthand form as needed (like you've done with <ogc:PropertyName>).
Declaring the whole namespace such as you've done with "<Filter
xmlns:gml="http://www.opengis.net/gml">" has caused me errors.
You might also change the Filter namespace to ogc.
I cant see anything else, so see if that works, good luck,
Miles
Miles Jordan
Applications Developer
The Australian Antarctic Data Centre
___________________________________________________________________________
Australian Antarctic Division - Commonwealth of Australia
IMPORTANT: This transmission is intended for the addressee only. If you are not the
intended recipient, you are notified that use or dissemination of this communication is
strictly prohibited by Commonwealth law. If you have received this transmission in error,
please notify the sender immediately by e-mail or by telephoning +61 3 6232 3209 and
DELETE the message.
Visit our web site at http://www.aad.gov.au/
___________________________________________________________________________