|
During CITE testing on WMS 1.1, I hit a failure that looks like:
Test wms:wmsops-getcapabilities-response-2 type Mandatory default result Passed (s0003/d1e1036_1)
Assertion: The response to a GetCapabilities request references a valid copy of the DTD in Annex A.1 at a fully-qualified and accessible location and validates with the DTD. {{ Request d1e3959_1: Method: get URL: http://localhost:8080/geoserver/wms?SERVICE=WMS&&ReQuEsT=GetCapabilities&SeRvIcE=WMS&VeRsIoN=1.1.1 Response from parser parsers:XMLValidatingParser:
Messages from parser parsers:XMLValidatingParser: Validation error at line 6493, column 17: The content of element type "Style" must match "(Name,Title,Abstract?,LegendURL*,StyleSheetURL?,StyleURL?)". Validation error at line 6787, column 17: The content of element type "Style" must match "(Name,Title,Abstract?,LegendURL*,StyleSheetURL?,StyleURL?)". 2 validation errors detected.}}
The problem appears to be styles that do not have Title elements:
<Style>
<Name>poly_landmarks</Name>
<LegendURL width="22" height="80">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http: xlink:type="simple" xlink:href="" class="code-quote" style="color: #009100">"http://localhost:8080/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=tiger%3Apoly_landmarks"/>
</LegendURL>
</Style>
and
<Style>
<Name>tiger_roads</Name>
<LegendURL width="22" height="80">
<Format>image/png</Format>
<OnlineResource xmlns:xlink="http: xlink:type="simple" xlink:href="" class="code-quote" style="color: #009100">"http://localhost:8080/geoserver/wms?request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=tiger%3Atiger_roads"/>
</LegendURL>
</Style>
The options would appear to be to require Title in all the SLD, or to create a title if we don't have one. I think the second seems better, unless the SLD spec requires titles.
|