~ubuntu-branches/ubuntu/saucy/mapserver/saucy-security

« back to all changes in this revision

Viewing changes to xmlmapfile/mapfile.xsl

  • Committer: Package Import Robot
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-12-23 14:02:06 UTC
  • mfrom: (26.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20111223140206-n3h9t2hsa8hyslmu
Tags: 6.0.1-2
Added missed stuff for libmapscript-perl.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
    <xsl:apply-templates select="ms:Map"/>
149
149
  </xsl:template>
150
150
 
151
 
<xsl:template match="ms:color | ms:backgroundColor | ms:outlineColor | ms:backgroundShadowColor |  ms:shadowColor | ms:imageColor | ms:offsite">
 
151
<xsl:template match="ms:color | ms:backgroundColor | ms:outlineColor | ms:shadowColor | ms:imageColor | ms:offsite">
152
152
  <xsl:param name="indent"/>
153
153
   <xsl:choose>
154
154
     <xsl:when test="starts-with(name(), 'ms:')">
175
175
  </xsl:call-template>
176
176
</xsl:template>
177
177
 
178
 
<xsl:template match="ms:size | ms:offset | ms:keySize | ms:keySpacing | ms:backgroundShadowSize | ms:shadowSize">
 
178
<xsl:template match="ms:size | ms:offset | ms:keySize | ms:keySpacing | ms:shadowSize">
179
179
  <xsl:param name="indent"/>
180
180
  <xsl:choose>
181
181
    <xsl:when test="starts-with(name(), 'ms:')">
361
361
    </xsl:call-template>
362
362
    <xsl:call-template name="print">
363
363
      <xsl:with-param name="indent" select="$indent"/>
 
364
      <xsl:with-param name="node" select="'ms:tempPath'"/>
 
365
      <xsl:with-param name="quote" select="1"/>
 
366
    </xsl:call-template>
 
367
    <xsl:call-template name="print">
 
368
      <xsl:with-param name="indent" select="$indent"/>
364
369
      <xsl:with-param name="node" select="'ms:imageUrl'"/>
365
370
      <xsl:with-param name="quote" select="1"/>
366
371
    </xsl:call-template>
436
441
      <xsl:with-param name="node" select="'ms:extension'"/>
437
442
      <xsl:with-param name="quote" select="1"/>
438
443
    </xsl:call-template>
439
 
    <xsl:call-template name="print">
440
 
      <xsl:with-param name="indent" select="$indent"/>
441
 
      <xsl:with-param name="node" select="'ms:formatOption'"/>
442
 
      <xsl:with-param name="quote" select="1"/>
443
 
    </xsl:call-template>
 
444
    <xsl:for-each select="ms:formatOption">
 
445
       <xsl:call-template name="print">
 
446
         <xsl:with-param name="indent" select="$indent"/>
 
447
         <xsl:with-param name="text" select="concat('FORMATOPTION ','&#34;',.,'&#34;')"/>
 
448
       </xsl:call-template>
 
449
    </xsl:for-each>
444
450
    <xsl:call-template name="print">
445
451
      <xsl:with-param name="indent" select="$indent"/>
446
452
      <xsl:with-param name="node" select="'ms:imageMode'"/>
583
589
      <xsl:with-param name="indent" select="$indent"/>
584
590
      <xsl:with-param name="node" select="'ms:antialias'"/>
585
591
    </xsl:call-template>
586
 
     <xsl:apply-templates select="ms:backgroundColor">
587
 
      <xsl:with-param name="indent" select="$indent"/>
588
 
    </xsl:apply-templates>
589
 
    <xsl:apply-templates select="ms:backgroundShadowColor">
590
 
      <xsl:with-param name="indent" select="$indent"/>
591
 
    </xsl:apply-templates>
592
 
    <xsl:apply-templates select="ms:backgroundShadowSize">
593
 
      <xsl:with-param name="indent" select="$indent"/>
594
 
    </xsl:apply-templates>
595
592
    <xsl:call-template name="print">
596
593
      <xsl:with-param name="indent" select="$indent"/>
597
594
      <xsl:with-param name="node" select="'ms:buffer'"/>
598
595
    </xsl:call-template>
 
596
    <xsl:call-template name="print">
 
597
      <xsl:with-param name="indent" select="$indent"/>
 
598
      <xsl:with-param name="node" select="'ms:maxoverlapangle'"/>
 
599
    </xsl:call-template>
599
600
    <xsl:apply-templates select="ms:color">
600
601
      <xsl:with-param name="indent" select="$indent"/>
601
602
    </xsl:apply-templates>
1282
1283
      <xsl:with-param name="indent" select="$indent"/>
1283
1284
      <xsl:with-param name="node" select="'ms:postLabelCache'"/>
1284
1285
    </xsl:call-template>
1285
 
    <xsl:call-template name="print">
1286
 
      <xsl:with-param name="indent" select="$indent"/>
1287
 
      <xsl:with-param name="node" select="'ms:processing'"/>
1288
 
      <xsl:with-param name="quote" select="1"/>
1289
 
    </xsl:call-template>
 
1286
    <xsl:apply-templates select="ms:Cluster">
 
1287
      <xsl:with-param name="indent" select="$indent + 1"/>
 
1288
    </xsl:apply-templates>
 
1289
    <xsl:for-each select="ms:processing">
 
1290
      <xsl:call-template name="print">
 
1291
        <xsl:with-param name="indent" select="$indent"/>
 
1292
        <xsl:with-param name="text">
 
1293
          <xsl:value-of select="concat('PROCESSING ','&#34;',.,'&#34;')"/>
 
1294
        </xsl:with-param>
 
1295
      </xsl:call-template>
 
1296
    </xsl:for-each>
1290
1297
    <xsl:apply-templates select="ms:projection">
1291
1298
      <xsl:with-param name="indent" select="$indent + 1"/>
1292
1299
    </xsl:apply-templates>
1343
1350
      <xsl:with-param name="indent" select="$indent + 1"/>
1344
1351
    </xsl:apply-templates>
1345
1352
    <xsl:call-template name="print">
1346
 
      <xsl:with-param name="text" select="'END'"/>
 
1353
      <xsl:with-param name="text" select="'END&#xa;'"/>
 
1354
      <xsl:with-param name="indent" select="$indent - 1"/>
 
1355
    </xsl:call-template>
 
1356
  </xsl:template>
 
1357
 
 
1358
  <xsl:template match="ms:Cluster">
 
1359
    <xsl:param name="indent"/>
 
1360
    <xsl:call-template name="print">
 
1361
      <xsl:with-param name="text" select="'CLUSTER'"/>
 
1362
      <xsl:with-param name="indent" select="$indent - 1"/>
 
1363
    </xsl:call-template>
 
1364
    <xsl:call-template name="print">
 
1365
      <xsl:with-param name="indent" select="$indent"/>
 
1366
      <xsl:with-param name="node" select="'ms:maxdistance'"/>
 
1367
    </xsl:call-template>
 
1368
    <xsl:call-template name="print">
 
1369
      <xsl:with-param name="indent" select="$indent"/>
 
1370
      <xsl:with-param name="node" select="'ms:buffer'"/>
 
1371
    </xsl:call-template>
 
1372
    <xsl:call-template name="print">
 
1373
      <xsl:with-param name="indent" select="$indent"/>
 
1374
      <xsl:with-param name="node" select="'ms:region'"/>
 
1375
      <xsl:with-param name="quote" select="1"/>
 
1376
    </xsl:call-template>
 
1377
    <xsl:call-template name="printExpression">
 
1378
      <xsl:with-param name="indent" select="$indent"/>
 
1379
      <xsl:with-param name="node" select="'ms:group'"/>
 
1380
    </xsl:call-template>
 
1381
    <xsl:call-template name="printExpression">
 
1382
      <xsl:with-param name="indent" select="$indent"/>
 
1383
      <xsl:with-param name="node" select="'ms:filter'"/>
 
1384
    </xsl:call-template>
 
1385
    <xsl:call-template name="print">
 
1386
      <xsl:with-param name="text" select="'END&#xa;'"/>
1347
1387
      <xsl:with-param name="indent" select="$indent - 1"/>
1348
1388
    </xsl:call-template>
1349
1389
  </xsl:template>