[Geoserver-devel] [JIRA] (GEOS-10757) CITE: WMS <Style> has elements in wrong order (DTD validation)

David Blasby created an issue

GeoServer / BugGEOS-10757

CITE: WMS <Style> has elements in wrong order (DTD validation)

Issue Type:

BugBug

Assignee:

Unassigned

Created:

24/Nov/22 1:50 AM

Priority:

MediumMedium

Reporter:

David Blasby

I am running the WMS 1.1.1 CITE tests.

The GetCapabilities contains Layers like the following:

&lt;Layer queryable="1" opaque="0"&gt;
 …
     &lt;Style&gt;
          &lt;Title&gt;Grey Polygon&lt;/Title&gt;
          &lt;Name&gt;cite_map_neatline&lt;/Name&gt;
          &lt;LegendURL width="20" height="20"&gt;
             …
          &lt;/LegendURL&gt;
     &lt;/Style&gt;
 &lt;/Layer&gt;

The OGC DTD is linked at the top of the GetCapabilities response typically here;

<!DOCTYPE WMT_MS_Capabilities SYSTEM "http://localhost:8080/geoserver/schemas/wms/1.1.1/WMS_MS_Capabilities.dtd">

An online version is available here - http://schemas.opengis.net/wms/1.1.1/capabilities_1_1_1.dtd

The style element is defined as:

&lt;!ELEMENT Style ( Name, Title, Abstract?,
                  LegendURL*, StyleSheetURL?, StyleURL? ) &gt;

The order of the tags should be Name, Title, ….

However, GeoServer has it as Title, Name, … (Name and Title reversed).

This gives this error:

The content of element type "Style" must match "(Name,Title,Abstract?,LegendURL*,StyleSheetURL?,StyleURL?)".

Changing the order allows the GetCapabilities document to validate.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100210-sha1:eab5823)

Atlassian logo