Skip to content
GitLab
Explore
Sign in
xtof
AMSATLIST
Compare revisions
49d6b1df6c79dbc8b413dc2054f5936e75c58932 to 154ad9dfde361cb320e9fa70efbc66af83685d04
Hide whitespace changes
Inline
Side-by-side
Templates/XSLT/HtmlFileDescriptionFR.xsl
0 → 100644
View file @
154ad9df
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
version=
"2.0"
>
<xsl:output
method=
"html"
encoding=
"UTF-8"
name=
"html"
/>
<xsl:template
match=
"/"
>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
src=
"https://www.googletagmanager.com/gtag/js?id=UA-128629404-1"
async=
"true"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-128629404-1');
</script>
<meta
charset=
"utf-8"
>
</meta>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
</meta>
<title>
AMSAT SATELLITE LIST
</title>
<meta
name=
"description"
content=
""
></meta>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
></meta>
<link
rel=
"apple-touch-icon"
href=
"apple-touch-icon.png"
>
</link>
<link
rel=
"stylesheet"
href=
"initializr/css/normalize.min.css"
></link>
<link
rel=
"stylesheet"
href=
"initializr/css/main.css"
></link>
<script
src=
"initializr/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"
></script>
</head>
<body
bgcolor=
"#ffffff"
>
<div
class=
"header-container"
>
<header
class=
"wrapper clearfix"
>
<h1
class=
"title"
>
AMSAT SATELLITE LIST
</h1>
<nav>
<ul>
<li><a
href=
"../index_FR.html"
>
Home
</a></li>
<li><a
href=
"../AMSATLIST_Doc.xhtml"
>
Info
</a></li>
</ul>
</nav>
</header>
</div>
<div
class=
"main-container"
>
<div
class=
"main wrapper clearfix"
>
<article>
<h2>
Satellite avec la description compléte
</h2>
<table
class=
"platforms"
>
<tr
class=
"c0"
>
<th>
Status
</th><th>
Nom du satellite
</th><th>
N° NASA
</th><th>
Etat
</th>
</tr>
<xsl:for-each
select=
"AmsatList/Satellites"
>
<xsl:if
test=
"SatelliteInformationStatus"
>
<tr
class=
"c0"
>
<td><xsl:apply-templates
select=
"SatelliteInformationStatus"
/>
</td>
<td>
<a
href=
"SatellitePage/FR/{NasaID}{Name}.html"
><xsl:value-of
select=
"Name"
/></a></td>
<td>
<xsl:value-of
select=
"NasaID"
/></td>
<td>
<xsl:apply-templates
select=
"Status"
/>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
<h2>
Satellites avec une émission en 144 Mhz
</h2>
<table
class=
"platforms"
>
<tr
class=
"c0"
>
<th>
Status
</th><th>
Nom du satellite
</th><th>
N° NASA
</th><th>
Etat
</th><th>
Fréquence de la balise
</th>
</tr>
<xsl:for-each
select=
"AmsatList/Satellites"
>
<xsl:if
test=
"RadioData/Beacons/Frequency < '146000000' and RadioData/Beacons/Frequency > '140000000'"
>
<tr
class=
"c0"
>
<td><xsl:apply-templates
select=
"SatelliteInformationStatus"
/>
</td>
<td>
<a
href=
"SatellitePage/FR/{NasaID}{Name}.htm"
><xsl:value-of
select=
"Name"
/></a></td>
<td>
<xsl:value-of
select=
"NasaID"
/></td>
<td>
<xsl:apply-templates
select=
"Status"
/>
</td>
<td>
<xsl:apply-templates
select=
"RadioData/Beacons/Frequency"
/>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
<h2>
Tous les satellites
</h2>
<table
class=
"platforms"
>
<tr
class=
"c0"
>
<th>
Status
</th><th>
Nom du satellite
</th><th>
N° NASA
</th><th>
Etat
</th>
</tr>
<xsl:for-each
select=
"AmsatList/Satellites"
>
<tr
class=
"c0"
>
<td><xsl:apply-templates
select=
"SatelliteInformationStatus"
/>
</td>
<td>
<a
href=
"SatellitePage/FR/{NasaID}{Name}.htm"
><xsl:value-of
select=
"Name"
/></a></td>
<td>
<xsl:value-of
select=
"NasaID"
/></td>
<td>
<xsl:apply-templates
select=
"Status"
/>
</td>
</tr>
</xsl:for-each>
<xsl:apply-templates
select=
"AmsatList/Satellites"
/>
</table>
</article>
<article>
<xsl:for-each
select=
"AmsatList/Satellites"
>
<xsl:if
test=
"SatelliteInformationStatus"
>
<p>
<h1>
<a
href=
"SatellitePage/FR/{NasaID}{Name}.html"
><xsl:value-of
select=
"Name"
/></a>
</h1>
</p>
<section
class=
"RadioData"
>
<h2>
Radio
</h2>
<xsl:if
test=
"RadioData/Beacons"
>
<h3>
Télémesure
</h3>
<table
class=
"platforms"
>
<tr
class=
"c0"
>
<th>
Nom
</th><th>
Fréquence
</th><th>
Modes
</th><th>
Indicatif
</th>
</tr>
<td>
<xsl:apply-templates
select=
"RadioData/Beacons"
/></td>
</table>
</xsl:if>
<xsl:if
test=
"(RadioData/Transponders)"
>
<h3>
Transponder
</h3>
<table
class=
"platforms"
>
<tr
class=
"c0"
>
<th>
Nom
</th><th>
Mode
</th><th>
Fréquence montée
</th><th>
Fréquence descente
</th><th>
Inversé
</th><th>
CTSS
</th>
</tr>
<td>
<xsl:apply-templates
select=
"RadioData/Transponders"
/></td>
</table>
</xsl:if>
</section>
</xsl:if>
</xsl:for-each>
</article>
</div>
</div>
<div
class=
"footer-container"
>
<footer
class=
"wrapper"
>
<p><xsl:text>
Etat de complétude de la fiche :
</xsl:text>
<xsl:text>
Derniére mise à jours:
</xsl:text>
</p>
</footer>
</div>
<script
src=
"//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"
></script>
<script
src=
"initializr/js/plugins.js"
></script>
<script
src=
"initializr/js/main.js"
></script>
</body>
</html>
</xsl:template>
<xsl:template
match=
"RadioData/Beacons/Frequency"
>
<xsl:if
test=
". < '146000000' and . > '140000000'"
>
<xsl:value-of
select=
'format-number(number(.), "###,###.##")'
/>
<xsl:text>
Hz
</xsl:text>
</xsl:if>
</xsl:template>
<xsl:template
match=
"Satellites"
>
<xsl:result-document
format=
"html"
encoding=
"UTF-8"
href=
"SatellitePage/FR/{NasaID}{Name}.htm"
>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html
class=
"no-js"
lang=
""
>
<!--<![endif]-->
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
src=
"https://www.googletagmanager.com/gtag/js?id=UA-128629404-1"
async=
"true"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-128629404-1');
</script>
<meta
charset=
"utf-8"
>
</meta>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
</meta>
<title><xsl:value-of
select=
"./Name"
/></title>
<meta
name=
"description"
content=
""
></meta>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
></meta>
<link
rel=
"apple-touch-icon"
href=
"apple-touch-icon.png"
>
</link>
<link
rel=
"stylesheet"
href=
"../initializr/css/normalize.min.css"
></link>
<link
rel=
"stylesheet"
href=
"../initializr/css/main.css"
></link>
<script
src=
"../initializr/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"
></script>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div
class=
"header-container"
>
<header
class=
"wrapper clearfix"
>
<h1
class=
"title"
><xsl:value-of
select=
"./Name"
/>
</h1>
<nav>
<ul>
<li><a
href=
"../index.html"
>
Home
</a></li>
<li><a
href=
"../AMSATLIST_Doc.xhtml"
>
Info
</a></li>
</ul>
</nav>
</header>
</div>
<div
class=
"main-container"
>
<div
class=
"main wrapper clearfix"
>
<article>
<header>
<h2>
Information générale
</h2>
<li>
<b>
Identification Nasa :
</b>
<xsl:value-of
select=
"./NasaID"
/></li>
<li>
<b>
Etat du satellite :
</b>
<xsl:value-of
select=
"./Status"
/></li>
<xsl:if
test=
"./OSCARNumber"
>
<li>
<b>
Réference Oscar :
</b>
<xsl:value-of
select=
"./OSCARNumber"
/></li>
</xsl:if>
</header>
<section
class=
"LaunchData"
>
<p><xsl:apply-templates
select=
"LaunchData"
/></p>
</section>
<section
class=
"Information"
>
<h2>
Informations détaillées
</h2>
<p><xsl:apply-templates
select=
"Information"
/></p>
</section>
<section
class=
"RadioData"
>
<h2>
Radio
</h2>
<h3>
Balise
</h3>
<td>
<xsl:apply-templates
select=
"RadioData/Beacons"
/></td>
<h3>
Transponder
</h3>
<td>
<xsl:apply-templates
select=
"RadioData/Transponders"
/></td>
</section>
<section
class=
"Telemetry"
>
<h2>
Télémesure
</h2>
<p>
<xsl:apply-templates
select=
"TelemetryData"
/>
</p>
</section>
</article>
</div>
<!-- #main -->
</div>
<!-- #main-container -->
<div
class=
"footer-container"
>
<footer
class=
"wrapper"
>
<p><xsl:text>
Etat de complétude de la fiche :
</xsl:text>
<xsl:value-of
select=
"./SatelliteInformationStatus"
/>
<xsl:text>
derniére mise à jours:
</xsl:text>
<xsl:value-of
select=
"./UpdateDate"
/>
</p>
</footer>
</div>
<script
src=
"//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"
></script>
<script
src=
"../initializr/js/plugins.js"
></script><script
src=
"initializr/js/main.js"
></script>
</body>
</html>
</xsl:result-document>
</xsl:template>
<xsl:template
match=
"RadioData/Beacons"
>
<h4>
Nom :
<xsl:value-of
select=
"Name"
/></h4>
<li><b>
Fréquence :
</b><xsl:value-of
select=
'format-number(number(Frequency), "###,###.##")'
/>
<xsl:text>
Hz
</xsl:text>
</li>
<li><b>
Mode :
</b><xsl:apply-templates
select=
"Modes"
/>
</li>
</xsl:template>
<xsl:template
match=
"Modes"
>
<xsl:apply-templates
select=
"Mode"
/>
<xsl:text
disable-output-escaping=
"yes"
>
&
nbsp;
</xsl:text>
<xsl:apply-templates
select=
"Speed"
/>
<xsl:text>
Bauds
</xsl:text>
</xsl:template>
<xsl:template
match=
"RadioData/Transponders"
>
<h4>
Nom :
<xsl:value-of
select=
"Name"
/></h4>
<li><b>
Fréquence montée :
</b>
<xsl:value-of
select=
'format-number(number(FrequencyUplink/FrequencyBegin), "###,###.##")'
/>
<xsl:text>
Hz
</xsl:text>
<xsl:if
test=
"FrequencyUplink/FrequencyEnd"
>
<xsl:text>
-
</xsl:text>
<xsl:value-of
select=
'format-number(number(FrequencyUplink/FrequencyEnd), "###,###.##")'
/>
<xsl:text>
Hz
</xsl:text>
</xsl:if>
</li>
<li><b>
Fréquence descendante :
</b>
<xsl:value-of
select=
'format-number(number(FrequencyDownlink/FrequencyBegin), "###,###.##")'
/>
<xsl:text>
Hz
</xsl:text>
<xsl:if
test=
"FrequencyDownlink/FrequencyEnd"
>
<xsl:text>
-
</xsl:text>
<xsl:value-of
select=
'format-number(number(FrequencyDownlink/FrequencyEnd), "###,###.##")'
/>
<xsl:text>
Hz
</xsl:text>
</xsl:if>
</li>
<xsl:if
test=
"Inverted"
>
<li><b>
Inverné ? :
</b><xsl:apply-templates
select=
"Inverted"
/></li>
</xsl:if>
<li><b>
Mode :
</b>
<xsl:apply-templates
select=
"Mode"
/>
</li>
<xsl:if
test=
"Tone"
>
<li><b>
Ton :
</b><xsl:apply-templates
select=
"Tone"
/><xsl:text>
Hz
</xsl:text>
</li>
</xsl:if>
</xsl:template>
<xsl:template
match=
"LaunchData"
>
<h2>
Information de lancement
</h2>
<li><b>
Date de lancement :
</b>
<xsl:value-of
select=
"LaunchDate"
/></li>
<li><b>
Site de lancement :
</b>
<xsl:value-of
select=
"LaunchingSite"
/></li>
</xsl:template>
<xsl:template
match=
"Information"
>
<xsl:for-each
select=
"Description"
>
<xsl:choose>
<xsl:when
test=
"contains(current()/@lang,'EN')"
>
<p>
<xsl:value-of
select=
"current()"
/>
<br/>
</p>
</xsl:when>
</xsl:choose>
</xsl:for-each>
<p>
<xsl:text>
Link :
</xsl:text>
<a
href=
"{Information/Value}"
><xsl:value-of
select=
"Information/DescTitle"
/></a>
</p>
</xsl:template>
<xsl:template
match=
"TelemetryData"
>
<h3>
Description télémesure
</h3>
<p><xsl:apply-templates
select=
"DescriptionURL"
/></p>
<h3>
Envoie d'information sur les télémesures reçues
</h3>
<p><a
href=
"{ReportURL/Value}"
><xsl:value-of
select=
"ReportURL/Title"
/></a></p>
</xsl:template>
<xsl:template
match=
"DescriptionURL"
>
<p><a
href=
"{./Value}"
><xsl:value-of
select=
"./Title"
/></a></p>
</xsl:template>
</xsl:stylesheet>
Prev
1
2
Next