Projet

Général

Profil

Anomalie #56 » transformation_en.xsl

Christophe MASSE, 07/11/2014 10:10

 
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<xsl:stylesheet version="1.0" 
3
	xmlns:gco="http://www.isotc211.org/2005/gco"
4
	xmlns:gmd="http://www.isotc211.org/2005/gmd"
5
	xmlns:gfc="http://www.isotc211.org/2005/gfc"
6
	xmlns:gmx="http://www.isotc211.org/2005/gmx"
7
	xmlns:gts="http://www.isotc211.org/2005/gts"
8
	
9
	xmlns:gml="http://www.opengis.net/gml"
10
	xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
11
	
12
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13

    
14
	xmlns:geonet="http://www.fao.org/geonetwork"	
15

    
16
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
17
	
18
<xsl:output version="4.01" omit-xml-declaration="yes" method="html" encoding="UTF-8" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" doctype-system="http://www.w3.org/TR/html4/loose.dtd" indent="yes"/>
19
<xsl:variable name="fileMapping" select="document('./transformation_en.xsl')"/>   
20
<xsl:template match='/'>
21
<html><head>
22
<style type="text/css" media="all" >
23
    /** {font: normal 1em verdana, arial, sans-serif; color:#000; vertical-align: top; text-align: center;}*/
24
    #page {width: 780px; text-align: center; margin: auto; font: normal 0.93em verdana, arial, sans-serif; color:#000; vertical-align: top; }
25
    #page .type {page-break-before: always; text-align: right; font: bold 0.8em verdana, arial, sans-serif; margin-top: 10px;}
26
    #page .t {font: bold 2em verdana, arial, sans-serif; text-align:center; line-height:1.8em; border: 1px solid #000000; background-color: #a6bddb;}
27
    
28
	
29
	#page table {border-spacing: 0px; width: 100%}
30
	#page th, td {padding: 5px 30px 5px 10px;border-spacing: 0px;font-size: 90%;margin: 0px;}
31
	#page th, td {color: #737476;text-align: left;background-color: #e0e9f0;border-top: 1px solid #f1f8fe;border-bottom: 1px solid #cbd2d8;	border-right: 1px solid #cbd2d8;}
32
	#page tr.head th {color: #fff;background-color: #90b4d6; border-bottom: 2px solid #547ca0;border-right: 1px solid #749abe;border-top: 1px solid #90b4d6;text-align: left;text-shadow: -1px -1px 1px #666; letter-spacing: 0.15em;}
33
	#page tr.head th:first-child {-webkit-border-top-left-radius: 5px;-moz-border-radius-topleft: 5px;border-top-left-radius: 5px;}
34
	#page tr.head th:last-child {-webkit-border-top-right-radius: 5px;-moz-border-radius-topright: 5px;border-top-right-radius: 5px;}	
35
    #page tr.headTitle th {font-size: 150%; color: #fff;background-color: #00b4FF;	border-bottom: 2px solid #547ca0;border-right: 1px solid #749abe;border-top: 1px solid #90b4d6;text-align: center;text-shadow: -1px -1px 1px #666;letter-spacing: 0.15em; }
36
	#page tr.headTitle th:first-child {-webkit-border-top-left-radius: 10px;-moz-border-radius-topleft: 10px;border-top-left-radius: 10px; -webkit-border-bottom-left-radius: 10px;-moz-border-radius-bottomleft: 10px;border-bottom-left-radius: 10px;}
37
	#page tr.headTitle th:last-child {-webkit-border-top-right-radius: 10px;-moz-border-radius-topright: 10px;border-top-right-radius: 10px; -webkit-border-bottom-right-radius: 10px;-moz-border-radius-bottomright: 10px;border-bottom-right-radius: 10px;}
38
	#page td {text-shadow: 1px 1px 1px #fff;}
39
	#page tr.even td, tr.even th {	background-color: #e8eff5;} 
40

    
41

    
42
    #page .partie {font-weight: bold; border: 0px solid #000000; background-color: #a6bddb; }
43
	#page .partietd {font-weight: bold; border: 0px solid #000000; background-color: #a6bddb; text-align: center;}
44
    #page .td1 {width: 130px; vertical-align: top;}
45
    #page .titre {font-weight: bold; text-align: center;}
46
    #page .td2 { text-align: justify; white-space : pre-wrap; }
47
	#page .td2c { text-align: justify; white-space : pre-wrap; text-align: center; }
48
	#page .td2left { text-align: left;}
49
	#page .ul1 {list-style-type:none; margin-top:0px; margin-bottom:0px; padding: 0px;} 
50
	#page .ul2 {margin-top:0px; margin-bottom:0px; padding: 10px;} 
51
	#page .li1 {margin-top:0px; } 
52
    #page .tb_cnt {background:#fff; border: 1px solid #000000; font:1.2em verdana, arial, sans-serif; border-collapse:collapse; margin: 5px; width: 98%;}
53
    #page .td1_cnt {width: 400px; border: 1px solid #000000;}
54
    #page .td2_cnt {width: 200px;; border: 1px solid #000000;}
55
    #page .note {font-size: 0.7em; font-style: italic; text-align: right; margin-bottom: 30px;}
56
    #page .retour {padding: 5px 5px 10px 5px; text-align: left; text-decoration: none;}
57
</style>
58
</head>
59
<body>
60
    <div id="page">
61
        <xsl:apply-templates/>
62
    </div>
63
</body>
64
</html>
65
</xsl:template >
66

    
67
<xsl:template match="gmd:MD_Metadata">  
68
	<table>
69
	  <tr class="headTitle"><th>Metadata file</th></tr>
70
	</table>  
71
    <br/>
72
Date for generation  
73
<xsl:if test="gmd:dateStamp/gco:Date">
74
	<xsl:call-template name="date">
75
		<xsl:with-param name="ladate" select="gmd:dateStamp/gco:Date"/>
76
	</xsl:call-template>
77
</xsl:if>
78
<xsl:if test="gmd:dateStamp/gco:DateTime">
79
	<xsl:value-of select="gmd:dateStamp/gco:DateTime"/>
80
</xsl:if>	
81
<br/><br/>
82
	<table>
83
	  <tr class="headTitle"><th>Metadata file</th></tr>
84
	</table>  
85
    <br/>
86
	
87
    <table>
88
	  <tr class="head"><th colspan="2">Lot identification data</th></tr>
89
      <tr>
90
        <td class="td1">Unique Identifier :</td>
91
        <td class="td2"> <xsl:value-of select="gmd:fileIdentifier/gco:CharacterString"/> </td>
92
      </tr>
93
      <tr>
94
        <td class="td1">Title :</td>
95
        <td class="titre td2"> <xsl:value-of select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gco:CharacterString"/> </td>
96
      </tr>
97
      <tr>
98
        <td class="td1">Type :</td>
99
        <td class="titre td2"><xsl:value-of select="gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:scope/gmd:DQ_Scope/gmd:level/gmd:MD_ScopeCode"/></td>
100
      </tr>		  
101
      <tr>
102
        <td class="td1">Abstract :</td>
103
        <td class="td2"> 
104
			<xsl:value-of select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:abstract/gco:CharacterString"/> 
105
		</td>
106
      </tr>
107
      <tr>
108
        <td class="td1">URL :</td>
109
		<td> 
110
		<ul class="ul1"> 
111
			<xsl:for-each select="gmd:distributionInfo/gmd:MD_Distribution/gmd:transferOptions/gmd:MD_DigitalTransferOptions/gmd:onLine">
112
				<li class="li1">
113
					- <xsl:value-of select="gmd:CI_OnlineResource/gmd:name/gco:CharacterString"/> :<br/> 
114
					<a>
115
						<xsl:attribute name="href">
116
							<xsl:value-of select="gmd:CI_OnlineResource/gmd:linkage/gmd:URL"/> 
117
						</xsl:attribute>
118
							<xsl:value-of select="gmd:CI_OnlineResource/gmd:linkage/gmd:URL"/>			
119
					</a>
120
					<br/><br/>
121
				</li>
122
			</xsl:for-each>
123
		</ul>
124
		</td>
125
 	  </tr>	
126
	</table>
127

    
128
	<br/>
129
	
130
    <table>
131
	  <tr class="head"><th colspan="2">Classification and keywords</th></tr>
132
	  <tr>
133
        <td class="td1">Keywords thematics INSPIRE :</td>
134
 		<td> 
135
		<ul class="ul1"> 
136
			<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords/gmd:MD_Keywords[gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString='GEMET - INSPIRE Themes']">
137
				<li class="li1"> <xsl:value-of select="gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString"/> : 
138
				<xsl:value-of select="gmd:keyword/gco:CharacterString"/> </li>
139
			</xsl:for-each>
140
		</ul>
141
		</td>
142
     </tr>
143
	  <tr>
144
        <td class="td1">Other keywords :</td>
145
 		<td> 
146
		<ul class="ul1"> 
147
			<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords/gmd:MD_Keywords[not (gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString='GEMET - INSPIRE Themes')]">
148
				<li class="li1"> - <b><xsl:value-of select="gmd:keyword/gco:CharacterString"/></b></li> 
149
				<xsl:if test="gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString">
150
				[<u>controlled vocabulary</u> : <i><xsl:value-of select="gmd:thesaurusName/gmd:CI_Citation/gmd:title/gco:CharacterString"/></i> -  
151
				<u>date</u> : <i><xsl:value-of select="gmd:thesaurusName/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date"/></i> - 
152
				<u>date type</u> : <i><xsl:value-of select="gmd:thesaurusName/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode"/></i>]
153
				</xsl:if>
154
			</xsl:for-each>
155
		</ul>
156
		</td>
157
     </tr>
158
    </table>
159

    
160
	<br/>
161
	
162
    <table>
163
	  <tr class="head"><th colspan="2">Language Elements</th></tr>
164
      <tr>
165
        <td class="td1">Language(s) :</td>
166
		<td>
167
		<ul class="ul1">
168
			<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:language">
169
			<li class="li1"> - <xsl:value-of select="gmd:LanguageCode/@codeListValue"/></li>
170
			</xsl:for-each>
171
		</ul>
172
     </td>
173
      </tr>
174
	  <tr>
175
        <td class="td1">Data encoding :</td>
176
        <td class="td1"> 
177
			<xsl:value-of select="gmd:characterSet/gmd:MD_CharacterSetCode/@codeListValue"/>
178
		</td>
179
      </tr>
180
	</table>
181
	
182
    <br/>
183
	
184
    <table>
185
		<tr class="head"><th colspan="4">Extent(s) :</th></tr>
186
		<tr>
187
			<td class="partietd">X min :</td>
188
			<td class="partietd">X max :</td>
189
			<td class="partietd">Y min :</td>
190
			<td class="partietd">Y max :</td>
191
		</tr>
192
		<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:geographicElement/gmd:EX_GeographicBoundingBox">
193
			<tr>
194
				<td class="td2c"><xsl:value-of select="gmd:westBoundLongitude/gco:Decimal"/></td>
195
				<td class="td2c"><xsl:value-of select="gmd:eastBoundLongitude/gco:Decimal"/></td>
196
				<td class="td2c"><xsl:value-of select="gmd:southBoundLatitude/gco:Decimal"/></td>
197
				<td class="td2c"><xsl:value-of select="gmd:northBoundLatitude/gco:Decimal"/></td>
198
			</tr>
199
		</xsl:for-each>
200
	</table>
201

    
202
	<br/>
203

    
204
	<table>
205
	   <tr class="head"><th colspan="2">Quality, validity and compliance</th></tr>
206
	  <tr>
207
        <td class="td1">Genealogy : </td>
208
        <td class="td2"> 
209
	    <xsl:if test="gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:lineage/gmd:LI_Lineage/gmd:statement/gco:CharacterString"> 		
210
			<xsl:value-of select="gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:lineage/gmd:LI_Lineage/gmd:statement/gco:CharacterString"/> 
211
		</xsl:if>
212
		</td>
213
      </tr>
214
	  
215
	  <xsl:if test="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:equivalentScale">
216
	  <tr>
217
        <td class="td1">Spatial resolution(s) : </td>
218
        <td class="td1">
219
		<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:equivalentScale">
220
			1/<xsl:value-of select="gmd:MD_RepresentativeFraction/gmd:denominator/gco:Integer"/> ;
221
		</xsl:for-each>
222
		</td>
223
      </tr>
224
	  </xsl:if>
225
	  
226
	  <xsl:if test="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance">
227
	  <tr>
228
        <td class="td1">Spatial resolution(s) - scale(s) equivalent in unit of measure : </td>
229
        <td class="td1">
230
		<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:spatialResolution/gmd:MD_Resolution/gmd:distance">
231
			<xsl:value-of select="gco:Distance"/> <xsl:value-of select="gco:Distance/@uom"/>;
232
		</xsl:for-each>
233
		</td>
234
      </tr>
235
	  </xsl:if>	  
236
	  
237
	  <tr valign="top">
238
        <td class="td1">System(s) coordinate reference :</td>
239
        <td>
240
		<ul class="ul1">
241
		<xsl:for-each select="gmd:referenceSystemInfo/gmd:MD_ReferenceSystem/gmd:referenceSystemIdentifier">
242
			<xsl:if test="gmd:RS_Identifier/gmd:code/gco:CharacterString">
243
				<li class="li1"> - EPSG : <xsl:value-of select="gmd:RS_Identifier/gmd:code/gco:CharacterString"/></li>
244
		    </xsl:if>
245
			<xsl:if test="gmd:RS_Identifier/gmd:code/gmx:Anchor">
246
				<li class="li1"> - IGN : <xsl:value-of select="gmd:RS_Identifier/gmd:code/gmx:Anchor"/></li>
247
		    </xsl:if>			
248
		</xsl:for-each>
249
		</ul>	
250
		</td>
251
      </tr>	
252

    
253
	  <xsl:if test="gmd:spatialRepresentationInfo">
254
	  <tr>
255
        <td class="td1">Topological consistency :</td>
256
 		<td> 
257
		<ul class="ul1">		
258
			<li class="li1"><u>TopologyLevelCode</u> : <xsl:value-of select="gmd:spatialRepresentationInfo/gmd:MD_VectorSpatialRepresentation/gmd:topologyLevel/gmd:MD_TopologyLevelCode/@codeListValue"/></li>
259
			<xsl:if test="gmd:spatialRepresentationInfo/gmd:MD_VectorSpatialRepresentation/gmd:geometricObjects/gmd:MD_GeometricObjects/gmd:geometricObjectType/gmd:MD_GeometricObjectTypeCode">
260
				<li class="li1"><u>GeometricObjectTypeCode</u> : <xsl:value-of select="gmd:spatialRepresentationInfo/gmd:MD_VectorSpatialRepresentation/gmd:geometricObjects/gmd:MD_GeometricObjects/gmd:geometricObjectType/gmd:MD_GeometricObjectTypeCode/@codeListValue"/></li>
261
			</xsl:if>			
262
		</ul>
263
		</td>
264
	  </tr>
265
	  </xsl:if>
266

    
267
	  
268
	  <tr>
269
        <td class="td1">Specification(s) for Compliance :</td>
270
 		<td> 
271
		<ul class="ul1"> 
272
			<xsl:for-each select="gmd:dataQualityInfo/gmd:DQ_DataQuality/gmd:report/gmd:DQ_DomainConsistency">
273
				<li class="li1"> 
274
					- <xsl:value-of select="gmd:result/gmd:DQ_ConformanceResult/gmd:specification/gmd:CI_Citation/gmd:title/gco:CharacterString"/> from <xsl:call-template name="date">
275
				<xsl:with-param name="ladate" select="gmd:result/gmd:DQ_ConformanceResult/gmd:specification/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:date/gco:Date"/>
276
				</xsl:call-template> - <i>date for <xsl:value-of select="gmd:result/gmd:DQ_ConformanceResult/gmd:specification/gmd:CI_Citation/gmd:date/gmd:CI_Date/gmd:dateType/gmd:CI_DateTypeCode"/></i>
277
				[<b><xsl:choose>
278
					<xsl:when test="gmd:result/gmd:DQ_ConformanceResult/gmd:pass/gco:Boolean">
279
						<xsl:if test="gmd:result/gmd:DQ_ConformanceResult/gmd:pass/gco:Boolean='false'">non-compliant</xsl:if>
280
						<xsl:if test="gmd:result/gmd:DQ_ConformanceResult/gmd:pass/gco:Boolean='true'">compliant</xsl:if>	
281
					</xsl:when>
282
				<xsl:otherwise>Unrated</xsl:otherwise>	
283
				</xsl:choose></b>]	
284
				</li>
285
			</xsl:for-each>
286
		</ul>
287
		</td>
288
     </tr>
289
  
290
	  <tr>
291
        <td class="td1">Distribution format(s) :</td>
292
 		<td> 
293
		<ul class="ul1"> 
294
			<xsl:for-each select="gmd:distributionInfo/gmd:MD_Distribution/gmd:distributionFormat/gmd:MD_Format">
295
				<li class="li1"> - <xsl:value-of select="gmd:name/gco:CharacterString"/> 
296
					<xsl:if test="gmd:version/gco:CharacterString and gmd:version/gco:CharacterString!=''">
297
						    (version : <xsl:value-of select="gmd:version/gco:CharacterString"/>)
298
					</xsl:if>	
299
					<xsl:if test="gmd:version/gco:CharacterString and gmd:version/gco:CharacterString=''">
300
					(unknown version)</xsl:if>					
301
				</li>
302
			</xsl:for-each>
303
		</ul>
304
		</td>
305
     </tr>
306
    </table>
307

    
308
	<br/>	
309

    
310
	<table>
311
	  <tr class="head"><th colspan="2">Temporal information(s)</th></tr>
312
	  <tr valign="top">
313
        <td class="td1">Temporal extent(s) :</td>
314
        <td class="td2left">
315
		<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:extent/gmd:EX_Extent/gmd:temporalElement/gmd:EX_TemporalExtent/gmd:extent/gml:TimePeriod">
316
		du <xsl:call-template name="date">
317
				<xsl:with-param name="ladate" select="gml:beginPosition"/>
318
			</xsl:call-template> au <xsl:call-template name="date">
319
				<xsl:with-param name="ladate" select="gml:endPosition"/>
320
			</xsl:call-template><br/>
321
		</xsl:for-each>
322
		</td>
323
      </tr>
324
	  <tr>
325
        <td class="td1">Date of creation :</td>
326
        <td class="td2">
327
			<xsl:if test="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode='creation']/gmd:date/gco:Date"> 
328
				<xsl:call-template name="date">
329
					<xsl:with-param name="ladate" select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode='creation']/gmd:date/gco:Date"/>
330
				</xsl:call-template>
331
			</xsl:if>	
332
			<xsl:if test="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode='cr?ation']/gmd:date/gco:Date"> 
333
				<xsl:call-template name="date">
334
					<xsl:with-param name="ladate" select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode='cr?ation']/gmd:date/gco:Date"/>
335
				</xsl:call-template>
336
			</xsl:if>
337
		</td>
338
      </tr>	  
339
	  <tr>
340
        <td class="td1">Date of revision :</td>
341
        <td class="td2">
342
		<xsl:if test="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode='revision']/gmd:date/gco:Date"> 
343
			<xsl:call-template name="date">
344
				<xsl:with-param name="ladate" select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode='revision']/gmd:date/gco:Date"/>
345
			</xsl:call-template>
346
		</xsl:if>
347
		<xsl:if test="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode='r?vision']/gmd:date/gco:Date"> 
348
			<xsl:call-template name="date">
349
				<xsl:with-param name="ladate" select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode='r?vision']/gmd:date/gco:Date"/>
350
			</xsl:call-template>
351
		</xsl:if>		
352
		</td>
353
       </tr>
354
	   <tr valign="top">
355
        <td class="td1">Date of publication :</td>
356
        <td class="td2left">
357
			<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:date/gmd:CI_Date[gmd:dateType/gmd:CI_DateTypeCode='publication']/gmd:date">
358
				<xsl:call-template name="date">
359
					<xsl:with-param name="ladate" select="gco:Date"/>
360
				</xsl:call-template><br/>
361
			</xsl:for-each>
362
		</td>
363
      </tr>
364
    </table>
365

    
366
	<br/>	
367
     		
368
	<table>
369
	  <tr class="head"><th colspan="2">Rights and uses</th></tr>
370
	  <tr>
371
        <td class="td1">Licence :</td>
372
        <td class="td2"><xsl:value-of select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:resourceConstraints/gmd:MD_LegalConstraints/gmd:useLimitation/gco:CharacterString"/></td>
373
      </tr>
374

    
375
	  <xsl:if test="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:resourceConstraints/gmd:MD_LegalConstraints/gmd:accessConstraints">
376
	  <tr>
377
        <td class="td1">Restrictions on access to data :</td>
378
        <td class="td2">
379
		<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:resourceConstraints/gmd:MD_LegalConstraints/gmd:accessConstraints">
380
			<xsl:value-of select="gmd:MD_RestrictionCode"/>
381
		</xsl:for-each>	
382
	    </td>		
383
      </tr>	 
384
	  </xsl:if>	
385
	  
386
	  <xsl:if test="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:resourceConstraints/gmd:MD_LegalConstraints/gmd:otherConstraints">
387
	  <tr>
388
        <td class="td1">Other constraints :</td>
389
        <td class="td2">
390
		<ul class="ul1">
391
		<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:resourceConstraints/gmd:MD_LegalConstraints/gmd:otherConstraints">
392
			<li class="li1"> - <xsl:value-of select="gco:CharacterString"/></li>
393
		</xsl:for-each>		
394
		</ul>
395
		</td>
396
      </tr>	 
397
	  </xsl:if>		  
398

    
399
    </table>
400
	
401
	<br/>
402

    
403
<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact/gmd:CI_ResponsibleParty">
404
<xsl:variable name="MyType"><xsl:value-of select="gmd:role/gmd:CI_RoleCode"/></xsl:variable>
405
<xsl:if test="$MyType='owner'">	
406
   <table>
407
	  <tr class="head"><th colspan="2">Owner</th></tr>
408
	  <tr>
409
        <td class="td1">Organisation :</td>
410
        <td class="titre td2"> <xsl:value-of select="gmd:organisationName/gco:CharacterString"/> </td>
411
      </tr>
412
	  <tr>
413
        <td class="td1">Adress :</td>
414
        <td class="td2"> <xsl:value-of select="gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:deliveryPoint/gco:CharacterString"/> <br />
415
		<xsl:value-of select="gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:postalCode/gco:CharacterString"/> <br />
416
		<xsl:value-of select="gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:city/gco:CharacterString"/> </td>
417
      </tr>
418
      <tr>
419
        <td class="td1">Email :</td>
420
        <td> 
421
		<a>
422
			<xsl:attribute name="href">
423
				<xsl:text>mailto:</xsl:text>
424
				<xsl:value-of select="gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/> 
425
			</xsl:attribute>
426
				<xsl:value-of select="gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/>			
427
		</a>
428
		</td>
429
      </tr>
430
    </table>
431
</xsl:if>	
432
</xsl:for-each>
433

    
434

    
435
	<br/>
436
	
437
    <table>
438
	  <tr class="head"><th colspan="2">Point of contact</th></tr>
439
      <tr>
440
        <td class="td1">Organization :</td>
441
        <td class="titre td2"> <xsl:value-of select="gmd:contact/gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString"/> </td>
442
      </tr>
443
	  <tr>
444
        <td class="td1">Adress :</td>
445
        <td class="td2"> 
446
		<xsl:value-of select="gmd:contact/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:deliveryPoint/gco:CharacterString"/> <br />
447
		<xsl:value-of select="gmd:contact/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:postalCode/gco:CharacterString"/> <br />
448
		<xsl:value-of select="gmd:contact/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:city/gco:CharacterString"/> </td>
449
      </tr>
450
      <tr>
451
        <td class="td1">Email :</td>
452
        <td> 
453
		<a>
454
			<xsl:attribute name="href">
455
				<xsl:text>mailto:</xsl:text>
456
				<xsl:value-of select="gmd:contact/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/> 
457
			</xsl:attribute>
458
				<xsl:value-of select="gmd:contact/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/>			
459
		</a>
460
		</td>
461
      </tr>
462
	</table>
463
	
464
	<br/>
465
	
466
	<table>	 
467
		<tr class="head"><th colspan="2">Other(s) actor(s)</th></tr>
468
		<xsl:for-each select="gmd:identificationInfo/gmd:MD_DataIdentification/gmd:pointOfContact">
469
		 <xsl:variable name="MyType">
470
			 	<xsl:value-of select="gmd:CI_ResponsibleParty/gmd:role/gmd:CI_RoleCode"/>
471
		 </xsl:variable>
472
		 <xsl:if test="$MyType!='owner' and $MyType!='pointOfContact'">
473
			 <tr>
474
				<td class="td1">Organization :</td>
475
				 <td class="titre td2"><xsl:value-of select="gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString"/></td>
476
			</tr>
477
			<tr>
478
				<td class="td1">Role :</td>
479
				 <td class="titre td2">
480
					 <xsl:value-of select="$MyType"/>
481
				 </td>
482
			</tr>
483
			<tr>
484
			<td class="td1">Adress :</td>
485
			<td class="td2"> 
486
			<xsl:value-of select="gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:deliveryPoint/gco:CharacterString"/> <br />
487
			<xsl:value-of select="gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:postalCode/gco:CharacterString"/> <br />
488
			<xsl:value-of select="gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:city/gco:CharacterString"/> </td>
489
		  </tr>  
490
		  <tr>
491
			<td class="td1">Email :</td>
492
			<td> 
493
			<a>
494
				<xsl:attribute name="href">
495
					<xsl:text>mailto:</xsl:text>
496
					<xsl:value-of select="gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/> 
497
				</xsl:attribute>
498
					<xsl:value-of select="gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/>			
499
			</a>
500
			</td>
501
		  </tr>
502
	  </xsl:if>	
503
	  <tr><td colspan="2" class="td1"></td></tr>
504
  </xsl:for-each>
505
  </table>
506
  <br/>
507
</xsl:template>
508

    
509
<xsl:template name="date">
510
    <xsl:param name="ladate"/>
511
    <xsl:value-of select="substring($ladate,9,2)"/>/<xsl:value-of select="substring($ladate,6,2)"/>/<xsl:value-of select="substring($ladate,1,4)"/> 
512
</xsl:template>
513

    
514
<xsl:template match="gfc:FC_FeatureCatalogue"> 
515
	<table>
516
	  <tr class="headTitle"><th>Data Dictionary</th></tr>
517
	</table>  
518
    <br/>
519
    <table>
520
	  <tr class="head"><th colspan="2">Point of contact</th></tr>
521
      <tr>
522
        <td class="td1">Organization :</td>
523
        <td class="titre td2"> <xsl:value-of select="gfc:producer/gmd:CI_ResponsibleParty/gmd:organisationName/gco:CharacterString"/></td>
524
      </tr>
525
	  <tr>
526
        <td class="td1">Adress :</td>
527
        <td class="td2"> 
528
		<xsl:value-of select="gfc:producer/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:deliveryPoint/gco:CharacterString"/><br/>
529
		<xsl:value-of select="gfc:producer/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:postalCode/gco:CharacterString"/><br/>
530
		<xsl:value-of select="gfc:producer/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:city/gco:CharacterString"/></td>
531
      </tr>
532
      <tr>
533
        <td class="td1">Email :</td>
534
        <td> 
535
		<a>
536
			<xsl:attribute name="href">
537
				<xsl:text>mailto:</xsl:text>
538
				<xsl:value-of select="gfc:producer/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/> 
539
			</xsl:attribute>
540
				<xsl:value-of select="gfc:producer/gmd:CI_ResponsibleParty/gmd:contactInfo/gmd:CI_Contact/gmd:address/gmd:CI_Address/gmd:electronicMailAddress/gco:CharacterString"/>			
541
		</a>
542
		</td>
543
      </tr>
544
	</table>
545
	
546
	<br/>
547
	
548
	<table>
549
	  <tr class="head"><th colspan="2">Miscellaneous information</th></tr>
550
	  <tr valign="top">
551
        <td class="td1">Title :</td>
552
        <td class="td2"><xsl:value-of select="gfc:name/gco:CharacterString"/>
553
		</td>
554
      </tr>
555
	  <tr>
556
        <td class="td1">Name layer :</td>
557
        <td class="td2">
558
				<xsl:value-of select="gfc:scope/gco:CharacterString"/>
559
     	</td>
560
      </tr>		  
561
	  <tr>
562
        <td class="td1">Version number :</td>
563
        <td class="td2">
564
				<xsl:value-of select="gfc:versionNumber/gco:CharacterString"/>
565
     	</td>
566
      </tr>	  
567
	  <tr>
568
        <td class="td1">Version date :</td>
569
        <td class="td2">
570
			<xsl:call-template name="date">
571
				<xsl:with-param name="ladate" select="gfc:versionDate/gco:Date"/>
572
			</xsl:call-template>		
573
		</td>
574
       </tr>
575
    </table>
576

    
577
	<br/>
578
	
579
	<table>
580
	  <tr class="head"><th colspan="2">Attributes catalog :</th></tr>
581
	  <xsl:for-each select="gfc:featureType/gfc:FC_FeatureType/gfc:carrierOfCharacteristics/gfc:FC_FeatureAttribute">
582
	   <tr valign="top">
583
        <td class="td1"><xsl:value-of select="gfc:memberName/gco:LocalName"/></td>
584
        <td class="td2"><xsl:value-of select="gfc:valueType/gco:TypeName/gco:aName/gco:CharacterString"/><br/>[<i><xsl:value-of select="gfc:definition/gco:CharacterString"/></i>]
585
		</td>
586
      </tr>
587
	  </xsl:for-each>
588
    </table>
589

    
590
	
591
</xsl:template>
592

    
593

    
594
</xsl:stylesheet>
(4-4/5)