| 228 | - Note |
| 229 | There is a mistake in the capabilities schema found on http://schemas.opengis.net/wcs/1.0.0/wcsCapabilities.xsd. The relevant parts of the emails exchange are pasted below. To solve this issue, the second solution proposed by Alexandre Robin was applied. So the capabilities schema was changed as follow. |
| 230 | |
| 231 | {{{ |
| 232 | From: |
| 233 | <!-- =========================================================== --> |
| 234 | <xs:complexType name="AbstractDescriptionBaseType" abstract="true"> |
| 235 | <xs:annotation> |
| 236 | <xs:documentation>Description of a WCS object. </xs:documentation> |
| 237 | </xs:annotation> |
| 238 | <xs:complexContent> |
| 239 | <xs:restriction base="gml:AbstractGMLType"> |
| 240 | <xs:sequence> |
| 241 | <xs:element ref="metadataLink" minOccurs="0" maxOccurs="unbounded"/> |
| 242 | </xs:sequence> |
| 243 | </xs:restriction> |
| 244 | </xs:complexContent> |
| 245 | </xs:complexType> |
| 246 | <!-- =========================================================== --> |
| 247 | <xs:complexType name="AbstractDescriptionType" abstract="true"> |
| 248 | <xs:annotation> |
| 249 | <xs:documentation>Human-readable descriptive information for the object it is included |
| 250 | within.</xs:documentation> |
| 251 | </xs:annotation> |
| 252 | <xs:complexContent> |
| 253 | <xs:extension base="AbstractDescriptionBaseType"> |
| 254 | <xs:sequence> |
| 255 | <xs:element ref="description" minOccurs="0"/> |
| 256 | <xs:element ref="name"/> |
| 257 | <xs:element name="label" type="xs:string"> |
| 258 | <xs:annotation> |
| 259 | <xs:documentation>Short human-readable label for this object, for human |
| 260 | interface display. </xs:documentation> |
| 261 | </xs:annotation> |
| 262 | </xs:element> |
| 263 | </xs:sequence> |
| 264 | <xs:attribute ref="gml:id" use="prohibited"/> |
| 265 | </xs:extension> |
| 266 | </xs:complexContent> |
| 267 | </xs:complexType> |
| 268 | |
| 269 | |
| 270 | |
| 271 | To: |
| 272 | <!-- =========================================================== --> |
| 273 | <xs:complexType name="AbstractDescriptionBaseType" abstract="true"> |
| 274 | <xs:annotation> |
| 275 | <xs:documentation>Description of a WCS object. </xs:documentation> |
| 276 | </xs:annotation> |
| 277 | <xs:complexContent> |
| 278 | <xs:restriction base="gml:AbstractGMLType"> |
| 279 | </xs:restriction> |
| 280 | </xs:complexContent> |
| 281 | </xs:complexType> |
| 282 | <!-- =========================================================== --> |
| 283 | <xs:complexType name="AbstractDescriptionType" abstract="true"> |
| 284 | <xs:annotation> |
| 285 | <xs:documentation>Human-readable descriptive information for the object it is included |
| 286 | within.</xs:documentation> |
| 287 | </xs:annotation> |
| 288 | <xs:complexContent> |
| 289 | <xs:extension base="AbstractDescriptionBaseType"> |
| 290 | <xs:sequence> |
| 291 | <xs:element ref="metadataLink" minOccurs="0" maxOccurs="unbounded"/> |
| 292 | ... |
| 293 | </xs:complexType> |
| 294 | |
| 295 | }}} |
| 296 | |
| 297 | {{{ |
| 298 | |
| 299 | |
| 300 | Normand Savard wrote: |
| 301 | |
| 302 | > >So I wanted to get more information on this error by validating the WCS |
| 303 | > >1.0.0 capababilities against its associated wcsCapabilities.xsd with XML |
| 304 | > >Spy and I got the following error: |
| 305 | > > |
| 306 | > >"Error in reference schema or DTD. Type 'AbstractDescriptionBaseType' |
| 307 | > >is not a valid restriction of type 'gml:AbstractGMLType'." |
| 308 | > >Do someone else got this error before? Can someone give me some pointers? |
| 309 | > > |
| 310 | |
| 311 | De : Robin, Alexandre |
| 312 | > Envoyé : mardi 12 février 2008 10:01 |
| 313 | > À : 'Whiteside, Arliss E (US SSA)'; Peter Baumann; Kralidis,Tom |
| 314 | > [Burlington]; wcs-1.2.swg@opengeospatial.org; Kevin Stegemoller Objet |
| 315 | > : RE: [WCS-1.2.swg] [CITE-Forum] [Fwd: WCS 1.0.0 legacy tests engine] |
| 316 | > |
| 317 | > |
| 318 | > |
| 319 | > Arliss, Peter, |
| 320 | > |
| 321 | > |
| 322 | > |
| 323 | > The error in this schema is pretty obvious and is not due to new |
| 324 | > validators being too picky. |
| 325 | > |
| 326 | > There was an error in this schema from the start and the author |
| 327 | > probably used a tool like XMLSpy v5 to validate it which does not |
| 328 | > handle restrictions at all... |
| 329 | > |
| 330 | > |
| 331 | > |
| 332 | > The error is that AbstractDescriptionBaseType in wcsCapabilities.xsd |
| 333 | > derives from gml:AbstractGMLType by restriction but adds a |
| 334 | > metadataLink element which is not present in the base type. |
| 335 | > This is an erroneous restriction for sure and needs to be fixed... |
| 336 | > |
| 337 | > |
| 338 | > |
| 339 | > The simplest solution would be to not derive from gml:AbstractGMLType |
| 340 | > since we don't keep anything from this object anyway!!! |
| 341 | > |
| 342 | > If some implementations are relying on the fact that it derives from a |
| 343 | > gml object (which I doubt since it never validated with automatic |
| 344 | > binding frameworks!), it is also possible to move the metadataLink in |
| 345 | > the AbstractDescriptionType thus making the restriction correct... |
| 346 | > |
| 347 | |
| 348 | }}} |