Skip to content
Commits on Source (2)
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.josast.org/test/jaxb"
xmlns:tns="http://www.josast.org/test/jaxb"
elementFormDefault="qualified">
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="AmsatList" type="AmsatListType"/> <xs:element name="AmsatList" type="AmsatListType"/>
...@@ -17,6 +25,7 @@ ...@@ -17,6 +25,7 @@
<xs:enumeration value="230000"/> <xs:enumeration value="230000"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:element>
<xs:element name="Status"> <xs:element name="Status">
<xs:simpleType> <xs:simpleType>
...@@ -37,7 +46,7 @@ ...@@ -37,7 +46,7 @@
</xs:simpleType> </xs:simpleType>
</xs:element> </xs:element>
<xs:element name="Mode" minOccurs="0"> <xs:element name="Mode" >
<xs:simpleType> <xs:simpleType>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:enumeration value="SSB/CW"/> <xs:enumeration value="SSB/CW"/>
...@@ -145,13 +154,19 @@ ...@@ -145,13 +154,19 @@
<xs:element type="xs:string" name="Title"/> <xs:element type="xs:string" name="Title"/>
<xs:element type="xs:string" name="Value"/> <xs:element type="xs:string" name="Value"/>
</xs:sequence> </xs:sequence>
</xs:complexType>
<xs:complexType name="SoftwareURLType">
<xs:sequence>
<xs:element type="xs:string" name="Title"/>
<xs:element type="xs:string" name="Value"/>
</xs:sequence>
</xs:complexType> </xs:complexType>
<xs:complexType name="TelemetryDataType"> <xs:complexType name="TelemetryDataType">
<xs:sequence> <xs:sequence>
<xs:element type="DescriptionURLType" name="DescriptionURL" maxOccurs="unbounded" minOccurs="0"/> <xs:element type="DescriptionURLType" name="DescriptionURL" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="ReportURLType" name="ReportURL" minOccurs="0"/> <xs:element type="ReportURLType" name="ReportURL" minOccurs="0"/>
<xs:element type="xs:string" name="ReportEmail" minOccurs="0"/> <xs:element type="xs:string" name="ReportEmail" minOccurs="0"/>
<xs:element type="xs:string" name="SoftwareURL" minOccurs="0"/> <xs:element type="SoftwareURLType" name="SoftwareURL" minOccurs="0"/>
<xs:element type="xs:string" name="Description" minOccurs="0"/> <xs:element type="xs:string" name="Description" minOccurs="0"/>
</xs:sequence> </xs:sequence>
</xs:complexType> </xs:complexType>
......
...@@ -6,6 +6,16 @@ ...@@ -6,6 +6,16 @@
<head> <head>
<meta charset="utf-8"> </meta> <meta charset="utf-8"> </meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> </meta> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> </meta>
<!-- 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>
<title>AMSAT SATELLITE LIST</title> <title>AMSAT SATELLITE LIST</title>
<meta name="description" content=""></meta> <meta name="description" content=""></meta>
<meta name="viewport" content="width=device-width, initial-scale=1"></meta> <meta name="viewport" content="width=device-width, initial-scale=1"></meta>
...@@ -45,7 +55,7 @@ ...@@ -45,7 +55,7 @@
<tr class="c0"> <tr class="c0">
<td><xsl:apply-templates select="SatelliteInformationStatus"/> </td> <td><xsl:apply-templates select="SatelliteInformationStatus"/> </td>
<td> <a href="SatellitePage/{NasaID}.htm"><xsl:value-of select="Name"/></a></td> <td> <a href="SatellitePage/{NasaID}{Name}.htm"><xsl:value-of select="Name"/></a></td>
<td> <xsl:value-of select="NasaID"/></td> <td> <xsl:value-of select="NasaID"/></td>
<td> <xsl:apply-templates select="Status"/> </td> <td> <xsl:apply-templates select="Status"/> </td>
</tr> </tr>
...@@ -64,7 +74,7 @@ ...@@ -64,7 +74,7 @@
<tr class="c0"> <tr class="c0">
<td><xsl:apply-templates select="SatelliteInformationStatus"/> </td> <td><xsl:apply-templates select="SatelliteInformationStatus"/> </td>
<td> <a href="SatellitePage/{NasaID}.htm"><xsl:value-of select="Name"/></a></td> <td> <a href="SatellitePage/{NasaID}{Name}.htm"><xsl:value-of select="Name"/></a></td>
<td> <xsl:value-of select="NasaID"/></td> <td> <xsl:value-of select="NasaID"/></td>
<td> <xsl:apply-templates select="Status"/> </td> <td> <xsl:apply-templates select="Status"/> </td>
<td> <xsl:apply-templates select="RadioData/Beacons/Frequency"/> </td> <td> <xsl:apply-templates select="RadioData/Beacons/Frequency"/> </td>
...@@ -85,7 +95,7 @@ ...@@ -85,7 +95,7 @@
<tr class="c0"> <tr class="c0">
<td><xsl:apply-templates select="SatelliteInformationStatus"/> </td> <td><xsl:apply-templates select="SatelliteInformationStatus"/> </td>
<td> <a href="SatellitePage/{NasaID}.htm"><xsl:value-of select="Name"/></a></td> <td> <a href="SatellitePage/{NasaID}{Name}.htm"><xsl:value-of select="Name"/></a></td>
<td> <xsl:value-of select="NasaID"/></td> <td> <xsl:value-of select="NasaID"/></td>
<td> <xsl:apply-templates select="Status"/> </td> <td> <xsl:apply-templates select="Status"/> </td>
</tr> </tr>
...@@ -113,15 +123,7 @@ ...@@ -113,15 +123,7 @@
<script src="initializr/js/plugins.js"></script> <script src="initializr/js/plugins.js"></script>
<script src="initializr/js/main.js"></script> <script src="initializr/js/main.js"></script>
<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X','auto');ga('send','pageview');
</script>
</body> </body>
...@@ -137,7 +139,7 @@ ...@@ -137,7 +139,7 @@
</xsl:template> </xsl:template>
<xsl:template match="Satellites"> <xsl:template match="Satellites">
<xsl:result-document format="html" encoding="UTF-8" href="SatellitePage/{NasaID}.htm" > <xsl:result-document format="html" encoding="UTF-8" href="SatellitePage/{NasaID}{Name}.htm" >
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]--> <!--[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 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
...@@ -146,6 +148,16 @@ ...@@ -146,6 +148,16 @@
<head> <head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async="true" src="https://www.googletagmanager.com/gtag/js?id=UA-128629404-1"></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 charset="utf-8"> </meta>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> </meta> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> </meta>
<title><xsl:value-of select="./Name"/></title> <title><xsl:value-of select="./Name"/></title>
...@@ -204,8 +216,13 @@ ...@@ -204,8 +216,13 @@
<h2>Radio</h2> <h2>Radio</h2>
<h3>Beacon</h3> <h3>Beacon</h3>
<td> <xsl:apply-templates select="RadioData/Beacons"/></td> <td> <xsl:apply-templates select="RadioData/Beacons"/></td>
<h3>Transponder</h3>
<xsl:if test="(RadioData/Transponders)">
<h3>Transponder</h3>
<td> <xsl:apply-templates select="RadioData/Transponders"/></td> <td> <xsl:apply-templates select="RadioData/Transponders"/></td>
</xsl:if>
</section> </section>
<section class="Telemetry"> <section class="Telemetry">
...@@ -236,14 +253,7 @@ ...@@ -236,14 +253,7 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <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> <script src="../initializr/js/plugins.js"></script><script src="initializr/js/main.js"></script>
<script>
(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','UA-XXXXX-X','auto');ga('send','pageview');
</script>
</body> </body>
</html> </html>
...@@ -252,7 +262,7 @@ ...@@ -252,7 +262,7 @@
<xsl:template match="RadioData/Beacons"> <xsl:template match="RadioData/Beacons">
<h4>Name : <xsl:value-of select="Name"/></h4> <h4>Name : <xsl:value-of select="Name"/></h4>
<li><b>Frequency :</b><xsl:value-of select='format-number(number(Frequency), "###,###.##")' /> <xsl:text> Hz </xsl:text> </li> <li><b>Frequency :</b><xsl:value-of select='format-number(number(Frequency) div 1000000, "###,###.###")' /> <xsl:text> MHz </xsl:text> </li>
<li><b>Mode :</b><xsl:apply-templates select="Modes"/> </li> <li><b>Mode :</b><xsl:apply-templates select="Modes"/> </li>
</xsl:template> </xsl:template>
...@@ -263,17 +273,17 @@ ...@@ -263,17 +273,17 @@
<xsl:template match="RadioData/Transponders"> <xsl:template match="RadioData/Transponders">
<h4>Name : <xsl:value-of select="Name"/></h4> <h4>Name : <xsl:value-of select="Name"/></h4>
<li><b>Uplink :</b> <xsl:value-of select='format-number(number(FrequencyUplink/FrequencyBegin), "###,###.##")' /> <xsl:text> Hz </xsl:text> <li><b>Uplink :</b> <xsl:value-of select='format-number(number(FrequencyUplink/FrequencyBegin) div 1000000, "###,###.###")' /> <xsl:text> MHzHz </xsl:text>
<xsl:if test="FrequencyUplink/FrequencyEnd"> <xsl:if test="FrequencyUplink/FrequencyEnd">
<xsl:text> - </xsl:text> <xsl:text> - </xsl:text>
<xsl:value-of select='format-number(number(FrequencyUplink/FrequencyEnd), "###,###.##")' /> <xsl:text> Hz </xsl:text> <xsl:value-of select='format-number(number(FrequencyUplink/FrequencyEnd) div 1000000, "###,###.###")' /> <xsl:text> MHzHz </xsl:text>
</xsl:if> </li> </xsl:if> </li>
<li><b>Downlink :</b> <xsl:value-of select='format-number(number(FrequencyDownlink/FrequencyBegin), "###,###.##")' /> <xsl:text> Hz </xsl:text> <li><b>Downlink :</b> <xsl:value-of select='format-number(number(FrequencyDownlink/FrequencyBegin) div 1000000, "###,###.###")' /> <xsl:text> MHz </xsl:text>
<xsl:if test="FrequencyDownlink/FrequencyEnd"> <xsl:if test="FrequencyDownlink/FrequencyEnd">
<xsl:text> - </xsl:text> <xsl:text> - </xsl:text>
<xsl:value-of select='format-number(number(FrequencyDownlink/FrequencyEnd), "###,###.##")' /> <xsl:text> Hz </xsl:text> <xsl:value-of select='format-number(number(FrequencyDownlink/FrequencyEnd) div 1000000, "###,###.###")' /> <xsl:text> MHz </xsl:text>
</xsl:if> </li> </xsl:if> </li>
<xsl:if test="Inverted"> <xsl:if test="Inverted">
<li><b>Inverted : </b><xsl:apply-templates select="Inverted"/></li> <li><b>Inverted : </b><xsl:apply-templates select="Inverted"/></li>
...@@ -293,20 +303,18 @@ ...@@ -293,20 +303,18 @@
<xsl:template match="Information"> <xsl:template match="Information">
<xsl:text> Link : </xsl:text> <a href="{./Value}"><xsl:value-of select="./Title"/></a>
<xsl:for-each select="Description"> <xsl:for-each select="Description">
<xsl:choose> <xsl:choose>
<xsl:when test="contains(current()/@lang,'EN')"> <xsl:when test="contains(current()/@lang,'EN')">
<p> <p>
<xsl:value-of select="current()"/> <br/> <xsl:value-of select="current()"/> <br/>
</p> </p>
</xsl:when> </xsl:when>
</xsl:choose> </xsl:choose>
</xsl:for-each>
<p> </xsl:for-each>
<xsl:text> Link : </xsl:text> <a href="{Information/Value}"><xsl:value-of select="Information/DescTitle"/></a>
</p>
</xsl:template> </xsl:template>
......
...@@ -5,7 +5,9 @@ ...@@ -5,7 +5,9 @@
<xsl:template match="/"> <!-- Match the root --> <xsl:template match="/"> <!-- Match the root -->
<xsl:for-each select="AmsatList/Satellites"> <xsl:for-each select="AmsatList/Satellites">
<xsl:result-document method="xml" href="satellite_{NasaID}_{Name}.xml"> <xsl:result-document method="xml" href="satellite_{NasaID}_{Name}.xml">
<AmsatList>
<xsl:copy-of select="../@* | ." /> <xsl:copy-of select="../@* | ." />
</AmsatList>
</xsl:result-document> </xsl:result-document>
</xsl:for-each> </xsl:for-each>
</xsl:template> </xsl:template>
......
java -jar C:\projet\SaxonHE9-8-0-14J\saxon9he.jar -s:../data/AmateurSatellites.xml -xsl:../Templates/XSLT/HtmlFileDescription.xsl -o:../site/index.html java -jar C:\projet\SaxonHE9-8-0-14J\saxon9he.jar -s:../data/AmsatList.xml -xsl:../Templates/XSLT/HtmlFileDescription.xsl -o:../site/index.html
\ No newline at end of file \ No newline at end of file