Dear All,

We have an instance of GeoServer v 2.17.1 installed.

The GetCapabilities xml generated by 
http://<<server>>/geoserver/gwc/service/wms?TILED=TRUE&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1<http://%3c%3cserver%3e%3e/geoserver/gwc/service/wms?TILED=TRUE&SERVICE=WMS&REQUEST=GetCapabilities&VERSION=1.1.1>
 appears to be invalid.

Where a style has been applied to a raster layer, the Style tag contains a 
LegendURL tag that contains an OnlineResource tag. This OnlineResource tag 
appears to be causing the following XML parsing error: "Namespace prefix xlink 
from href on OnlineResource is not defined".

<TileSet>
        <SRS>EPSG:900913</SRS>
        ...
        <Layers>OS:VectorMap</Layers>
        <Styles>
          <Style>
            <Name>VectorMap_GREY</Name>
            <LegendURL width="20" height="20">
              <Format>image/png</Format>
              <OnlineResource xlink:type="simple" xlink:href="http:// 
<<server>>/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=OS%3AVectorMap&amp;style=VectorMap_GREY"/>
            </LegendURL>
          </Style>
        </Styles>
      </TileSet>

Therefore, OpenLayers and other JavaScript xml parsers fail to parse the 
GetCapabilties.

Is there anything I can do that will add the "xmlns:xlink" attribute to these 
OnlineResource tags? Any ideas will be gratefully received!


All the best,

John


_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to