#3115 closed defect (fixed)
[WMC] embedded SLD in context does not work with namespace prefix
Reported by: | bartvde | Owned by: | assefa |
---|---|---|---|
Priority: | normal | Milestone: | 5.6 release |
Component: | MapServer C Library | Version: | unspecified |
Severity: | normal | Keywords: | |
Cc: | tomkralidis; assefa |
Description
For instance:
<Style current="1"><SLD><sld:StyledLayerDescriptor xmlns:sld="http://www.opengis.net/sld" version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/sld http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><sld:NamedLayer><sld:Name>AAA63</sld:Name><sld:UserStyle>
Which is what OpenLayers will write out.
Apparently the following line does not deal with namespace prefixes:
psStyleSLDBody = CPLGetXMLNode(psStyle, "SLD.StyledLayerDescriptor");
Attachments (1)
Change History (5)
by , 15 years ago
Attachment: | mapserver-5.2.0-3115.patch added |
---|
comment:2 by , 15 years ago
Milestone: | 6.0 release → 5.6 release |
---|
I believe adding the sld: name space in the <sld:StyledLayerDescriptor is not correct??
I have added a fix to also try to parse the node SLD.sld:StyledLayerDescriptor, which would keep the sld as is without stripping the name spaces. (r9544)
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 by , 15 years ago
Assefa, this is not wrong of OpenLayers, this is perfectly valid in XML.
Note:
See TracTickets
for help on using tickets.
patch to fix this issue