Projet

Général

Profil

Publication de fichiers » iso19115_es.xsl

Style sheet to place in folder: "xml / xsl" - Christophe MASSE, 18/10/2017 07:31

 
1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<!-- 
4
ISO 19139 default stylesheet
5
Based on metadata-iso19139.xsl from exCat
6
http://gdsc.nlr.nl/gdsc/en/tools/excat
7

    
8
/***************************************************************************
9
 Metadata browser/editor
10
                             
11
        begin                : 2011-02-21
12
        copyright            : (C) 2011 by NextGIS
13
        email                : info@nextgis.ru
14
        traduction Spanish   : Samuel Mesa 
15
        Team traduction      : GeoTux - http://geotux.co
16
 ***************************************************************************/
17

    
18
/***************************************************************************
19
 *                                                                         *
20
 *   This program is free software; you can redistribute it and/or modify  *
21
 *   it under the terms of the GNU General Public License as published by  *
22
 *   the Free Software Foundation; either version 2 of the License, or     *
23
 *   (at your option) any later version.                                   *
24
 *                                                                         *
25
 ***************************************************************************/
26
 <xsl:output method="html" encoding="ISO-8859-1"/>	 
27
-->
28

    
29
<xsl:stylesheet version="1.0" 
30
	xmlns:gco="http://www.isotc211.org/2005/gco"
31
	xmlns:gmd="http://www.isotc211.org/2005/gmd"
32
	xmlns:gfc="http://www.isotc211.org/2005/gfc"
33
	xmlns:gmx="http://www.isotc211.org/2005/gmx"
34
	xmlns:gts="http://www.isotc211.org/2005/gts"
35
	
36
	xmlns:gml="http://www.opengis.net/gml"
37
	xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
38
	
39
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
40

    
41
	xmlns:geonet="http://www.fao.org/geonetwork"	
42

    
43
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
44
	
45
<xsl:output method="html" encoding="UTF-8"/>
46

    
47
<xsl:template name="tablerow" >
48
    <xsl:param name="cname"/>
49
    <xsl:param name="cvalue"/>
50
	
51
	<xsl:variable name="svalue">
52
					 <xsl:if test="$cvalue='owner'">
53
						<xsl:value-of select="'Proprietario'"/>
54
					 </xsl:if>
55
					 
56
					 <xsl:if test="$cvalue='pointOfContact'">
57
						<xsl:value-of select="'Punto de contacto'"/>
58
					 </xsl:if>
59
					 
60
					 <xsl:if test="$cvalue='resourceProvider'">
61
						<xsl:value-of select="'Proveedor del recurso'"/>
62
					 </xsl:if>
63
					 
64
					 <xsl:if test="$cvalue='custodian'">
65
						<xsl:value-of select="'Custodia'"/>
66
					 </xsl:if>
67
					 
68
					 <xsl:if test="$cvalue='user'">
69
						<xsl:value-of select="'Usuario'"/>
70
					 </xsl:if>
71
					 
72
					 <xsl:if test="$cvalue='distributor'">
73
						<xsl:value-of select="'Distribuidor'"/>
74
					 </xsl:if>
75
					 
76
					 <xsl:if test="$cvalue='originator'">
77
						<xsl:value-of select="'Orginador'"/>
78
					 </xsl:if>
79
					 
80
					 <xsl:if test="$cvalue='principalInvestigator'">
81
						<xsl:value-of select="'Investigador principal'"/>
82
					 </xsl:if>
83
					 
84
					 <xsl:if test="$cvalue='processor'">
85
						<xsl:value-of select="'Integrador'"/>
86
					 </xsl:if>
87
					 
88
					 <xsl:if test="$cvalue='publisher'">
89
						<xsl:value-of select="'Editor'"/>
90
					 </xsl:if>
91
    </xsl:variable>
92

    
93
    <xsl:choose>
94
	<xsl:when test="contains($cname, 'URL site web')">
95
	  <tr>
96
          <td class="meta-param">
97
            <xsl:value-of select="$cname"/>
98
            <xsl:text>: </xsl:text>
99
          </td>
100
          <td class="meta-value">
101
		  <a>
102
			<xsl:attribute name="href">
103
				<xsl:value-of select="$cvalue"/>
104
			</xsl:attribute>
105
			<xsl:value-of select="$cvalue"/>
106
			</a>
107
		  
108
          </td>
109
        </tr>
110
	</xsl:when>
111
	<xsl:when test="contains($cname, 'Role')">
112
        <tr>
113
          <td class="meta-param">
114
            <xsl:value-of select="$cname"/>
115
            <xsl:text>: </xsl:text>
116
          </td>
117
          <td class="meta-value">
118
            <xsl:value-of select="$svalue"/>
119
          </td>
120
        </tr>
121
      </xsl:when>
122
	<xsl:when test="string($cvalue)">
123
        <tr>
124
          <td class="meta-param">
125
            <xsl:value-of select="$cname"/>
126
            <xsl:text>: </xsl:text>
127
          </td>
128
          <td class="meta-value">
129
            <xsl:value-of select="$cvalue"/>
130
          </td>
131
        </tr>
132
      </xsl:when>
133
      <xsl:otherwise>
134
	  </xsl:otherwise>
135
    </xsl:choose>
136
  </xsl:template>
137
  
138
<xsl:template match="gmd:MD_Metadata">
139
   
140
<!-- Metadata block -->
141
 
142
 <html>
143
   <head>
144
   	 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
145
  	 <style type="text/css">
146
 	.captioneddiv { margin: 2em 0em 0em 0em; padding: 1em; height:auto;	border: solid #2A669D 1px;	background: #ffffff; }
147
	.captioneddiv h3 { position: relative;  margin: 0.5em;  top: -2.0em;  left: -1.0em; padding: 0em 0.5em; display: inline;
148
					   font-size: 0.9em; /*background: #cae1ff;*/  background: #ffffff; }					
149
	.meta { vertical-align: top; }
150
	.meta-param { vertical-align: top; color: #004393 }
151
	.meta-value { vertical-align: top;}
152
	</style>
153
   </head>
154
   <body>
155
<div class="captioneddiv">
156
<h3>Metadatos</h3>
157
<table class="meta"><tr></tr>
158
      <xsl:call-template name="tablerow">
159
      <xsl:with-param name="cname" select="'Identificador del fichero'"/>
160
      <xsl:with-param name="cvalue" select="./gmd:fileIdentifier/gco:CharacterString"/>
161
      </xsl:call-template>
162
      <xsl:call-template name="tablerow">
163
      <xsl:with-param name="cname" select="'Idioma'"/>
164
      <xsl:with-param name="cvalue" select="./gmd:language/gco:CharacterString"/>
165
      </xsl:call-template>
166
      <xsl:call-template name="tablerow">
167
      <xsl:with-param name="cname" select="'Codificación'"/>
168
      <xsl:with-param name="cvalue" select="./gmd:characterSet/gmd:MD_CharacterSetCode/@codeListValue"/>
169
      </xsl:call-template>
170
      <xsl:call-template name="tablerow">
171
      <xsl:with-param name="cname" select="'Fecha'"/>
172
      <xsl:with-param name="cvalue" select="./gmd:dateStamp/gco:Date"/>
173
      </xsl:call-template>
174
      <xsl:call-template name="tablerow">
175
      <xsl:with-param name="cname" select="'Estándar de metadato'"/>
176
      <xsl:with-param name="cvalue" select="./gmd:metadataStandardName/gco:CharacterString"/>
177
      </xsl:call-template>
178
      <xsl:call-template name="tablerow">
179
      <xsl:with-param name="cname" select="'Versión del estándar'"/>
180
      <xsl:with-param name="cvalue" select="./gmd:metadataStandardVersion/gco:CharacterString"/>
181
      </xsl:call-template>
182
</table>
183
 
184
<xsl:apply-templates select="./gmd:contact"/>
185
</div> 
186

    
187
<!-- Identification block -->
188
<xsl:apply-templates select="./gmd:identificationInfo/gmd:MD_DataIdentification"/>
189

    
190
<!--  Distribution -->
191
<xsl:apply-templates select="./gmd:distributionInfo/gmd:MD_Distribution"/>
192

    
193
<!-- ContentInfo -->
194
<xsl:apply-templates select="./gmd:contentInfo"/>
195

    
196
<!--  DataQuality -->
197
<xsl:apply-templates select="./gmd:dataQualityInfo/gmd:DQ_DataQuality"/>
198
  		
199
   </body>
200
 </html>
201
</xsl:template>
202

    
203

    
204
<!-- 'Metadata->Metadata author' block -->
205
<xsl:template match="gmd:contact">
206
<div class="captioneddiv">
207
<h3>Autor del metadato</h3>
208
<table class="meta">
209
<tr>
210
<td class="meta" valign="top">
211
<table class="meta"><tr></tr>
212
      <xsl:call-template name="tablerow">
213
      <xsl:with-param name="cname" select="'Nombre'"/>
214
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:individualName/gco:CharacterString"/>
215
      </xsl:call-template>
216
      <xsl:call-template name="tablerow">
217
      <xsl:with-param name="cname" select="'Organización'"/>
218
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString"/>
219
      </xsl:call-template>
220
      <xsl:call-template name="tablerow">
221
      <xsl:with-param name="cname" select="'Posición'"/>
222
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:positionName/gco:CharacterString"/>
223
      </xsl:call-template>
224
      <xsl:call-template name="tablerow">
225
      <xsl:with-param name="cname" select="'Role'"/>
226
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode/@codeListValue"/>
227
      </xsl:call-template>
228
</table></td>
229
<td class="meta" valign="top">
230
<table class="meta"><tr></tr>
231
      <xsl:call-template name="tablerow">
232
      <xsl:with-param name="cname" select="'Teléfono'"/>
233
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:voice/gco:CharacterString"/>
234
      </xsl:call-template>
235
      <xsl:call-template name="tablerow">
236
      <xsl:with-param name="cname" select="'Fax'"/>
237
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:facsimile/gco:CharacterString"/>
238
      </xsl:call-template>
239
      <xsl:call-template name="tablerow">
240
      <xsl:with-param name="cname" select="'Dirección'"/>
241
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:deliveryPoint/gco:CharacterString"/>
242
      </xsl:call-template>
243
      <xsl:call-template name="tablerow">
244
      <xsl:with-param name="cname" select="'Ciudad'"/>
245
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:city/gco:CharacterString"/>
246
      </xsl:call-template>
247
      <xsl:call-template name="tablerow">
248
      <xsl:with-param name="cname" select="'Código Postal'"/>
249
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:postalCode/gco:CharacterString"/>
250
      </xsl:call-template>
251
      <xsl:call-template name="tablerow">
252
      <xsl:with-param name="cname" select="'País'"/>
253
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:country/gco:CharacterString"/>
254
      </xsl:call-template>
255
      <xsl:call-template name="tablerow">
256
      <xsl:with-param name="cname" select="'Correo electrónico'"/>
257
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/>
258
      </xsl:call-template>
259
      <xsl:call-template name="tablerow">
260
      <xsl:with-param name="cname" select="'Téléfono'"/>
261
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:voice/gco:CharacterString"/>
262
      </xsl:call-template>
263
      <xsl:call-template name="tablerow">
264
      <xsl:with-param name="cname" select="'URL del Sitio Web'"/>
265
      <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource/gmd:CI_OnlineResource/gmd:linkage/gmd:URL"/>
266
      </xsl:call-template>
267
</table></td>
268
</tr>
269
</table>
270
</div>
271
</xsl:template>
272

    
273

    
274
<!-- 'Identification' block -->
275
<xsl:template match="gmd:MD_DataIdentification">
276
<div class="captioneddiv">
277
<h3>Información de identificación</h3>
278
<table class="meta"><tr></tr>
279
      <xsl:call-template name="tablerow">
280
      <xsl:with-param name="cname" select="'Título'"/>
281
      <xsl:with-param name="cvalue" select="./gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString"/>
282
      </xsl:call-template>
283
      <xsl:call-template name="tablerow">
284
      <xsl:with-param name="cname" select="'Fecha'"/>
285
      <xsl:with-param name="cvalue" select="./gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:data/gco:Date"/>
286
      </xsl:call-template>
287
      <!--xsl:call-template name="tablerow">
288
      <xsl:with-param name="cname" select="'Presentation form'"/>
289
      <xsl:with-param name="cvalue" select="./idCitation/presForm/PresFormCd/@value"/>
290
      </xsl:call-template-->
291
	  <xsl:for-each select="./gmd:pointOfContact/gmd:CI_ResponsibleParty/gmd:organisationName">
292
		<xsl:call-template name="tablerow">
293
		<xsl:with-param name="cname" select="'Nombre'"/>
294
		<xsl:with-param name="cvalue" select="./gmd:pointOfContact/gmd:CI_ResponsibleParty/gmd:individualName/gco:CharacterString"/>
295
		</xsl:call-template>
296
		<xsl:call-template name="tablerow">
297
		<xsl:with-param name="cname" select="'Organización'"/>
298
		<xsl:with-param name="cvalue" select="./gmd:pointOfContact/gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString"/>
299
		</xsl:call-template>
300
	  </xsl:for-each>
301
      <!--abstract is handled seperately because of text formatting-->
302
      <tr>
303
      <td class="meta-param">Resumen:</td>
304
      <td class="meta-value">
305
      <xsl:apply-templates select="./gmd:abstract"/>
306
      </td>
307
      </tr>
308
      
309
      <!-- Keywords  -->
310
      <xsl:choose>
311
      <xsl:when test="./gmd:descriptiveKeywords/gmd:MD_Keywords/gmd:keyword">
312
      <tr>
313
      <td class="meta-param">Palabras clave:</td>
314
        <td class="meta-value">
315
            <xsl:apply-templates select="./gmd:descriptiveKeywords/gmd:MD_Keywords/gmd:keyword"/>
316
        </td>
317
      </tr> 
318
	  <tr>
319
	  <td class="meta-param">Palabras clave (detalles):</td>
320
	  <td class="meta-value">
321
	  <ul class="ul1"> 
322
			<xsl:for-each select="./gmd:descriptiveKeywords/gmd:MD_Keywords[gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString='GEMET - INSPIRE Themes']">
323
				<li class="li1"> <xsl:value-of select="gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString"/> : 
324
				<xsl:value-of select="gmd:keyword/gco:CharacterString"/> </li>
325
			</xsl:for-each>
326
		</ul>
327
		<ul class="ul1"> 
328
			<xsl:for-each select="./gmd:descriptiveKeywords/gmd:MD_Keywords[not (gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString='GEMET - INSPIRE Themes')]">
329
				<li class="li1"> - <b><xsl:value-of select="gmd:keyword/gco:CharacterString"/></b></li> 
330
				<xsl:if test="gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString">
331
				[<u>vocabulario controlado</u> : <i><xsl:value-of select="gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString"/></i> -  
332
				<u>fecha</u> : <i><xsl:value-of select="gmd:thesaurusName/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date"/></i> - 
333
				<u>tipo de fecha</u> : <i><xsl:value-of select="gmd:thesaurusName/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode"/></i>]
334
				</xsl:if>
335
			</xsl:for-each>
336
		</ul>
337
	  </td>
338
	  </tr>
339
      </xsl:when>
340
      <xsl:otherwise>
341
      </xsl:otherwise>
342
    </xsl:choose>
343
      
344
     <!--  Spatial repres --> 
345
      <xsl:call-template name="tablerow">
346
      <xsl:with-param name="cname" select="'Type de représentation spatiale'"/>
347
      <xsl:with-param name="cvalue" select="./gmd:spatialRepresentationType/gmd:MD_SpatialRepresentationTypeCode"/>
348
      </xsl:call-template>
349
      
350
      <!-- Spatial scale -->
351
      <xsl:choose>
352
      <xsl:when test="./gmd:spatialResolution/gmd:MD_Resolution/gmd:equivalentScale/gmd:MD_RepresentativeFraction/gmd:denominator/gco:Integer">
353
      <tr>
354
      <td class="meta-param">Escala espacial:</td>
355
        <td class="meta-value">
356
            1:<xsl:apply-templates select="./gmd:spatialResolution/gmd:MD_Resolution/gmd:equivalentScale/gmd:MD_RepresentativeFraction/gmd:denominator/gco:Integer"/>
357
        </td>
358
      </tr>  
359
      </xsl:when>
360
          <xsl:otherwise>
361
        </xsl:otherwise>
362
      </xsl:choose>
363
      
364
      <!-- Spatial accuracy -->
365
      <xsl:choose>
366
      <xsl:when test="./gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance">
367
      <tr>
368
      <td class="meta-param">Escala de equivalencia en unidades de medida :</td>
369
        <td class="meta-value">
370
            <xsl:apply-templates select="./gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance"/>
371
            <xsl:apply-templates select="./gmd:spatialResolution/gmd:MD_Resolution/gmd:distance/gco:Distance/@uom"/>
372
        </td>
373
      </tr>  
374
      </xsl:when>
375
          <xsl:otherwise>
376
        </xsl:otherwise>
377
      </xsl:choose>
378
      
379
     
380
      
381
</table>
382
            <!-- License info block -->
383
            <xsl:apply-templates select="./gmd:resourceConstraints/gmd:MD_LegalConstraints"/>
384
            <xsl:apply-templates select="./gmd:extent"/>
385
            <xsl:apply-templates select="./gmd:pointOfContact"/>
386
</div>
387

    
388
</xsl:template>
389

    
390
<!-- 'dataQualityInfo block -->
391
<xsl:template match="gmd:DQ_DataQuality">
392
<div class="captioneddiv">
393
<h3>Información de calidad</h3>
394
<table class="meta"><tr></tr>
395
        <xsl:call-template name="tablerow">
396
            <xsl:with-param name="cname" select="'Tipo de recurso'"/>
397
            <xsl:with-param name="cvalue" select="./gmd:scope/gmd:DQ_Scope/gmd:level/gmd:MD_ScopeCode"/>
398
        </xsl:call-template>
399
        <xsl:call-template name="tablerow">
400
            <xsl:with-param name="cname" select="'Linaje'"/>
401
            <xsl:with-param name="cvalue" select="./gmd:lineage/gmd:LI_Lineage/gmd:statement/gco:CharacterString"/>
402
        </xsl:call-template>
403
        <xsl:call-template name="tablerow">
404
            <xsl:with-param name="cname" select="'Información sobre el proceso'"/>
405
            <xsl:with-param name="cvalue" select="./gmd:lineage/gmd:LI_Lineage/gmd:processStep/gmd:LI_ProcessStep/gmd:description/gco:CharacterString"/>
406
        </xsl:call-template>
407

    
408
</table>
409
</div>
410

    
411
</xsl:template>
412
 
413

    
414
<!-- 'dataQualityInfo block -->
415
<xsl:template match="gmd:contentInfo">
416
<div class="captioneddiv">
417
<h3>Información sobre los datos</h3>
418
    <!-- Raster info -->
419
    <xsl:apply-templates select="./gmd:MD_ImageDescription"/>
420
    <!-- Vector info -->
421
</div>
422
</xsl:template>
423

    
424
<xsl:template match="gmd:MD_ImageDescription">
425
<table class="meta"><tr></tr>
426
    <xsl:call-template name="tablerow">
427
      <xsl:with-param name="cname" select="'Tipo de contenido'"/>
428
      <xsl:with-param name="cvalue" select="./gmd:contentType/gmd:MD_CoverageContentTypeCode"/>
429
    </xsl:call-template>
430
    
431
    <xsl:choose>
432
      <xsl:when test="./gmd:dimension/gmd:MD_Band">
433
      <tr>
434
      <td class="meta-param">Bandas raster :</td>
435
        <td class="meta-value">    
436
            <xsl:apply-templates select="./gmd:dimension/gmd:MD_Band"/>
437
        </td>   
438
      </tr>  
439
      </xsl:when>
440
          <xsl:otherwise>
441
        </xsl:otherwise>
442
      </xsl:choose>
443

    
444
</table>
445
</xsl:template>
446

    
447

    
448
<!-- Band info -->
449
<xsl:template match="gmd:MD_Band">
450
<div class="captioneddiv">
451
<table >
452
          <xsl:call-template name="tablerow">
453
          <xsl:with-param name="cname" select="'Valor mínimo'"/>
454
          <xsl:with-param name="cvalue" select="./gmd:minValue/gco:Real"/>
455
          </xsl:call-template>
456

    
457
          <xsl:call-template name="tablerow">
458
          <xsl:with-param name="cname" select="'Valor máximo'"/>
459
          <xsl:with-param name="cvalue" select="./gmd:maxValue/gco:Real"/>
460
          </xsl:call-template>
461
          
462
          <xsl:call-template name="tablerow">
463
          <xsl:with-param name="cname" select="'Valor de bit'"/>
464
          <xsl:with-param name="cvalue" select="./gmd:bitsPerValue/gco:Integer"/>
465
          </xsl:call-template>              
466
</table> 
467
</div>
468
</xsl:template>
469
 
470

    
471
 <!-- 'License info' block -->
472
  <xsl:template match="gmd:MD_LegalConstraints">
473
  	<xsl:if test="./gmd:useLimitation/gco:CharacterString">
474
      <div class="captioneddiv">
475
        <h3>Restricciones de uso :</h3>
476
        <table class="meta"><tr></tr>
477
        <xsl:call-template name="tablerow">
478
      		<xsl:with-param name="cname" select="'Tipo de restricción'"/>
479
      		<xsl:with-param name="cvalue" select="./gmd:useConstraints/gmd:MD_RestrictionCode"/>
480
      	</xsl:call-template>
481
      	<xsl:call-template name="tablerow">
482
      		<xsl:with-param name="cname" select="'Texto reglamentario'"/>
483
      		<xsl:with-param name="cvalue" select="./gmd:useLimitation/gco:CharacterString"/>
484
      	</xsl:call-template>
485
      	</table>
486
      </div>
487
    </xsl:if>
488
  </xsl:template>
489

    
490
<!-- 'Identification->Point of Contact' block -->
491
<xsl:template match="gmd:pointOfContact">
492
    <div class="captioneddiv">
493
      <h3>Punto de contacto</h3>
494
      <table class="meta">
495
        <tr>
496
          <td class="meta" valign="top">
497
            <table class="meta">
498
              <tr></tr>
499
              <xsl:call-template name="tablerow">
500
                <xsl:with-param name="cname" select="'Nombre'"/>
501
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:individualName/gco:CharacterString"/>
502
              </xsl:call-template>
503
              <xsl:call-template name="tablerow">
504
                <xsl:with-param name="cname" select="'Organización'"/>
505
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString"/>
506
              </xsl:call-template>
507
              <xsl:call-template name="tablerow">
508
                <xsl:with-param name="cname" select="'Posición'"/>
509
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:positionName/gco:CharacterString"/>
510
              </xsl:call-template>
511
              <xsl:call-template name="tablerow">
512
                <xsl:with-param name="cname" select="'Role'"/>
513
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode/@codeListValue"/>
514
              </xsl:call-template>
515
            </table>
516
          </td>
517
          <td class="meta" valign="top">
518
            <table class="meta">
519
              <tr></tr>
520
              <xsl:call-template name="tablerow">
521
                <xsl:with-param name="cname" select="'Téléfono'"/>
522
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:voice/gco:CharacterString"/>
523
              </xsl:call-template>
524
              <xsl:call-template name="tablerow">
525
                <xsl:with-param name="cname" select="'facsímil'"/>
526
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:facsimile/gco:CharacterString"/>
527
              </xsl:call-template>
528
              <xsl:call-template name="tablerow">
529
                <xsl:with-param name="cname" select="'Dirección'"/>
530
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:deliveryPoint/gco:CharacterString"/>
531
              </xsl:call-template>
532
              <xsl:call-template name="tablerow">
533
                <xsl:with-param name="cname" select="'Ciudad'"/>
534
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:city/gco:CharacterString"/>
535
              </xsl:call-template>
536
              <xsl:call-template name="tablerow">
537
                <xsl:with-param name="cname" select="'Código Postal'"/>
538
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:postalCode/gco:CharacterString"/>
539
              </xsl:call-template>
540
              <xsl:call-template name="tablerow">
541
                <xsl:with-param name="cname" select="'País'"/>
542
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:country/gco:CharacterString"/>
543
              </xsl:call-template>
544
              <xsl:call-template name="tablerow">
545
                <xsl:with-param name="cname" select="'Correo electrónico'"/>
546
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/>
547
              </xsl:call-template>
548
              <xsl:call-template name="tablerow">
549
                <xsl:with-param name="cname" select="'Téléfono'"/>
550
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:phone/gmd:CI_Telephone/gmd:voice/gco:CharacterString"/>
551
              </xsl:call-template>
552
              <xsl:call-template name="tablerow">
553
                <xsl:with-param name="cname" select="'URL del Sitio Web'"/>
554
                <xsl:with-param name="cvalue" select="./gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:onlineResource/gmd:CI_OnlineResource/gmd:linkage/gmd:URL"/>
555
              </xsl:call-template>
556
            </table>
557
          </td>
558
        </tr>
559
      </table>
560
    </div>
561
  </xsl:template>
562

    
563

    
564
  <!-- 'Identification->Geographic box' block -->
565
  <xsl:template match="gmd:extent">
566
    <xsl:if test="./gmd:EX_Extent/gmd:geographicElement">
567
    <xsl:for-each select="./gmd:EX_Extent/gmd:geographicElement">
568
      <div class="captioneddiv">
569
        <h3>Extensión geográfica</h3>
570
        <br/>
571
        <table class="meta" width="100%" height="25%" align="center">
572
          <tr></tr>
573
          <tr>
574
            <td></td>
575
            <td class="meta-param" align="center">
576
              Límite Norte para latitud<br/>
577
              <font color="#000000">
578
                <xsl:value-of select="./gmd:EX_GeographicBoundingBox/gmd:northBoundLatitude/gco:Decimal"/>
579
              </font>
580
            </td>
581
            <td></td>
582
          </tr>
583
          <tr>
584
            <td class="meta-param" align="center">
585
              Límite Oeste para longitud<br/>
586
              <font color="#000000">
587
                <xsl:value-of select="./gmd:EX_GeographicBoundingBox/gmd:westBoundLongitude/gco:Decimal"/>
588
              </font>
589
            </td>
590
            <td></td>
591
            <td class="meta-param" align="center">
592
              Límite Este para longitud<br/>
593
              <font color="#000000">
594
                <xsl:value-of select="./gmd:EX_GeographicBoundingBox/gmd:eastBoundLongitude/gco:Decimal"/>
595
              </font>
596
            </td>
597
          </tr>
598
          <tr>
599
            <td></td>
600
            <td class="meta-param" align="center">
601
              Límite Sur para latitud<br/>
602
              <font color="#000000">
603
                <xsl:value-of select="./gmd:EX_GeographicBoundingBox/gmd:southBoundLatitude/gco:Decimal"/>
604
              </font>
605
            </td>
606
            <td></td>
607
          </tr>
608
        </table>
609
      </div>
610
    </xsl:for-each>
611
    </xsl:if>
612
  </xsl:template>
613
  
614
  <!-- 'Distribution Info' block -->
615
  <xsl:template match="gmd:MD_Distribution">
616
    <div class="captioneddiv">
617
      <h3>Información de distribución</h3>
618
      <table class="meta">
619
        <tr></tr>
620
        <xsl:for-each select="gmd:transferOptions/gmd:MD_DigitalTransferOptions/gmd:onLine/gmd:CI_OnlineResource">
621
          <xsl:choose>
622
            <xsl:when test="starts-with(./gmd:protocol/gco:CharacterString,'WWW:DOWNLOAD-') and contains(./gmd:protocol/gco:CharacterString,'http--download') and ./gmd:name/gco:CharacterString">
623
              <tr>
624
                <td class="meta-param">Descarga :</td>
625
                <td class="meta-value">
626
                  <a>
627
                    <xsl:attribute name="href">
628
                      <xsl:value-of select="gmd:linkage/gmd:URL"/>
629
                    </xsl:attribute>
630
                    <xsl:value-of select="gmd:name/gco:CharacterString"/>
631
                  </a>
632
                </td>
633
              </tr>
634
            </xsl:when>
635
            <xsl:when test="starts-with(./gmd:protocol/gco:CharacterString,'ESRI:AIMS-') and contains(./gmd:protocol/gco:CharacterString,'-get-image') and ./gmd:name/gco:CharacterString">
636
              <tr>
637
                <td class="meta-param">Esri ArcIms:</td>
638
                <td class="meta-value">
639
                  <a>
640
                    <xsl:attribute name="href">
641
                      <xsl:value-of select="gmd:linkage/gmd:URL"/>
642
                    </xsl:attribute>
643
                    <xsl:value-of select="gmd:name/gco:CharacterString"/>
644
                  </a>
645
                </td>
646
              </tr>
647
            </xsl:when>
648
            <xsl:when test="starts-with(./gmd:protocol/gco:CharacterString,'OGC:WMS-') and contains(./gmd:protocol/gco:CharacterString,'-get-capabilities') and ./gmd:name/gco:CharacterString">
649
              <tr>
650
                <td class="meta-param">OGC-WMS Capabilities:</td>
651
                <td class="meta-value">
652
                  <a>
653
                    <xsl:attribute name="href">
654
                      <xsl:value-of select="gmd:linkage/gmd:URL"/>
655
                    </xsl:attribute>
656
                    <xsl:value-of select="gmd:name/gco:CharacterString"/>
657
                  </a>
658
                </td>
659
              </tr>
660
            </xsl:when>
661
          </xsl:choose>
662
        </xsl:for-each>
663
		<tr>
664
		<td class="meta-param">Formatos de distribución :</td>
665
		<td class="meta-value">
666
		<ul class="ul1"> 
667
			<xsl:for-each select="gmd:distributionFormat/gmd:MD_Format">
668
				<li class="li1"> - <xsl:value-of select="gmd:name/gco:CharacterString"/> 
669
					<xsl:if test="gmd:version/gco:CharacterString and gmd:version/gco:CharacterString!=''">
670
						    (version : <xsl:value-of select="gmd:version/gco:CharacterString"/>)
671
					</xsl:if>	
672
					<xsl:if test="gmd:version/gco:CharacterString and gmd:version/gco:CharacterString=''">
673
					(versión desconocida)</xsl:if>					
674
				</li>
675
			</xsl:for-each>
676
		</ul>
677
		</td>
678
		</tr>
679
      </table>
680
    </div>
681
  </xsl:template>
682

    
683
</xsl:stylesheet>
    (1-1/1)