[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-commits
Subject:    [mapserver-commits] r7325 - trunk/mapserver
From:       svn () osgeo ! org (svn () osgeo ! org)
Date:       2008-01-29 13:43:04
Message-ID: 20080129184303.A0B62E009DE () lists ! osgeo ! org
[Download RAW message or body]

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"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic