[mapserver-commits] r10039 - in trunk/mapserver/xmlmapfile: . tests

svn at osgeo.org svn at osgeo.org
Thu Apr 1 11:36:44 EDT 2010


Author: aboudreault
Date: 2010-04-01 11:36:44 -0400 (Thu, 01 Apr 2010)
New Revision: 10039

Modified:
   trunk/mapserver/xmlmapfile/mapfile.xsl
   trunk/mapserver/xmlmapfile/tests/mapfile-test.xml
Log:
Fixed XSL transformation of formatOption tags

Modified: trunk/mapserver/xmlmapfile/mapfile.xsl
===================================================================
--- trunk/mapserver/xmlmapfile/mapfile.xsl	2010-04-01 15:21:30 UTC (rev 10038)
+++ trunk/mapserver/xmlmapfile/mapfile.xsl	2010-04-01 15:36:44 UTC (rev 10039)
@@ -436,13 +436,14 @@
       <xsl:with-param name="node" select="'ms:extension'"/>
       <xsl:with-param name="quote" select="1"/>
     </xsl:call-template>
+    <xsl:for-each select="ms:formatOption">
+       <xsl:call-template name="print">
+         <xsl:with-param name="indent" select="$indent"/>
+         <xsl:with-param name="text" select="concat('FORMATOPTION ','&#34;',.,'&#34;')"/>
+       </xsl:call-template>
+    </xsl:for-each>
     <xsl:call-template name="print">
       <xsl:with-param name="indent" select="$indent"/>
-      <xsl:with-param name="node" select="'ms:formatOption'"/>
-      <xsl:with-param name="quote" select="1"/>
-    </xsl:call-template>
-    <xsl:call-template name="print">
-      <xsl:with-param name="indent" select="$indent"/>
       <xsl:with-param name="node" select="'ms:imageMode'"/>
       <xsl:with-param name="quote" select="1"/>
     </xsl:call-template>

Modified: trunk/mapserver/xmlmapfile/tests/mapfile-test.xml
===================================================================
--- trunk/mapserver/xmlmapfile/tests/mapfile-test.xml	2010-04-01 15:21:30 UTC (rev 10038)
+++ trunk/mapserver/xmlmapfile/tests/mapfile-test.xml	2010-04-01 15:36:44 UTC (rev 10039)
@@ -56,6 +56,7 @@
           <driver>GDAL/GTIFF</driver>
           <extension>tiff</extension>
           <formatOption>TILED=YES</formatOption>
+          <formatOption>TRANSPARENCY=TRUE</formatOption>
           <imageMode>FLOAT32</imageMode>
           <mimeType>image/tiff</mimeType>
           <transparent>OFF</transparent>



More information about the mapserver-commits mailing list