[mapserver-users] XML parsing error with extended Inspire WMS 1.1.1 capabilities

Eichner, Andreas - SID-NLKM Andreas.Eichner at sid.sachsen.de
Fri Jan 31 05:10:59 PST 2014


> I get this error: Namespace prefix xsi for type on MandatoryKeyword
> is not defined

You're right. The problem using DTD is that namespace declarations are done 
using FIXED attributes. Therefore the DTD part 
 <!ATTLIST inspire_common:MandatoryKeyword
   xmlns:inspire_common CDATA #FIXED "http://inspire.ec.europa.eu/schemas/common/1.0"
 >

Should be:
 <!ATTLIST inspire_common:MandatoryKeyword
   xmlns:inspire_common CDATA #FIXED "http://inspire.ec.europa.eu/schemas/common/1.0"
   xmlns:xsi CDATA #FIXED "http://www.w3.org/2001/XMLSchemainstance"
 >

Because for element inspire_common:Keyword the xsi:type attribute is declared 
it should probably also be done for the inspire_common:MandatoryKeyword.

So I would consider this being an incomplete document type definition. Fixing this should be simple.

HTH


More information about the mapserver-users mailing list