[mapserver-commits] r7325 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Tue Jan 29 13:43:03 EST 2008


Author: tomkralidis
Date: 2008-01-29 13:43:03 -0500 (Tue, 29 Jan 2008)
New Revision: 7325

Modified:
   trunk/mapserver/mapwcs.c
Log:
do not output full schema declaration in a section
if section is not the entire document (#2485)


Modified: trunk/mapserver/mapwcs.c
===================================================================
--- trunk/mapserver/mapwcs.c	2008-01-29 17:04:28 UTC (rev 7324)
+++ trunk/mapserver/mapwcs.c	2008-01-29 18:43:03 UTC (rev 7325)
@@ -532,7 +532,7 @@
 static int msWCSGetCapabilities_Service(mapObj *map, wcsParamsObj *params)
 {
   /* start the Service section, only need the full start tag if this is the only section requested */
-  if(!params->section) 
+  if(!params->section || (params->section && strcasecmp(params->section, "/") == 0))
     msIO_printf("<Service>\n");
   else
     msIO_printf("<Service\n"
@@ -584,7 +584,7 @@
   }
 
   /* start the Capabilty section, only need the full start tag if this is the only section requested */
-  if(!params->section) 
+  if(!params->section || (params->section && strcasecmp(params->section, "/") == 0))
     msIO_printf("<Capability>\n");
   else
     msIO_printf("<Capability\n"
@@ -674,7 +674,7 @@
 
   /* start the ContentMetadata section, only need the full start tag if this is the only section requested */
   /* TODO: add Xlink attributes for other sources of this information  */
-  if(!params->section)
+  if(!params->section || (params->section && strcasecmp(params->section, "/") == 0))
     msIO_printf("<ContentMetadata>\n");
   else
     msIO_printf("<ContentMetadata\n"



More information about the mapserver-commits mailing list