Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#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)

mapserver-5.2.0-3115.patch (425 bytes ) - added by bartvde 15 years ago.
patch to fix this issue

Download all attachments as: .zip

Change History (5)

by bartvde, 15 years ago

Attachment: mapserver-5.2.0-3115.patch added

patch to fix this issue

comment:1 by assefa, 15 years ago

Milestone: 6.0 release
Owner: changed from sdlime to assefa

will look at it for 6.0

comment:2 by assefa, 14 years ago

Milestone: 6.0 release5.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 assefa, 14 years ago

Resolution: fixed
Status: newclosed

comment:4 by bartvde, 14 years ago

Assefa, this is not wrong of OpenLayers, this is perfectly valid in XML.

Note: See TracTickets for help on using tickets.