:
zwei bis àchta
Heure audio
zwei
bis
àchta
zwei bis àchta
12
1
2
3
4
5
6
7
8
9
10
11
bis
Montrer le détail du traitement
Déployer tous les contenus
07
58
>
Montrer le détail
heure exprimée en toutes lettres, mot par mot, par la transformation
transfo_
heure
_xml.xsl
?
↓ XSL
<?xml version ="1.0" encoding="UTF-8"?> <!-- Nom de fichier : transfo_heure_xml.xsl --> <!-- Creation : Milib le 15/02/2015 --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="UTF-8"/> <xsl:template match="/"> <zitt> <src><hh><xsl:value-of select="heure/hh"/></hh><mm><xsl:value-of select="heure/mm"/></mm></src> <xsl:variable name="hh_format"> <xsl:call-template name="format"> <xsl:with-param name="n" select="heure/hh" /> </xsl:call-template> </xsl:variable> <xsl:variable name="mm_format"> <xsl:call-template name="format"> <xsl:with-param name="n" select="heure/mm" /> </xsl:call-template> </xsl:variable> <xsl:variable name="mm_arrondi"> <xsl:call-template name="arrondi"> <xsl:with-param name="mm" select="$mm_format" /> </xsl:call-template> </xsl:variable> <xsl:variable name="stund_decal"> <xsl:call-template name="stund_decal"> <xsl:with-param name="mm" select="$mm_arrondi" /> </xsl:call-template> </xsl:variable> <minutta> <xsl:call-template name="minutta"> <xsl:with-param name="mm" select="$mm_arrondi" /> </xsl:call-template> </minutta> <stund> <xsl:call-template name="stund"> <xsl:with-param name="hh" select="$hh_format" /> <xsl:with-param name="decal" select="$stund_decal" /> </xsl:call-template> </stund> </zitt> </xsl:template> <xsl:template name="format"> <!-- si nombre a 1 chiffre, ajoute un zero devant --> <xsl:param name="n" /> <xsl:if test="$n ='0' or $n='1' or $n='2' or $n='3' or $n='4' or $n='5' or $n='6' or $n='7' or $n='8' or $n='9'">0</xsl:if><xsl:value-of select="$n"/> </xsl:template> <xsl:template name="arrondi"> <!-- arrondit generalement aux 5 minutes les plus proches --> <xsl:param name="mm" /> <xsl:choose> <xsl:when test="$mm = '00'">00</xsl:when> <xsl:when test="$mm = '01'">01</xsl:when> <xsl:when test="$mm = '02'">02</xsl:when> <xsl:when test="$mm = '03'">03</xsl:when> <xsl:when test="$mm = '04'">05</xsl:when> <xsl:when test="$mm = '05'">05</xsl:when> <xsl:when test="$mm = '06'">05</xsl:when> <xsl:when test="$mm = '07'">05</xsl:when> <xsl:when test="$mm = '08'">05</xsl:when> <xsl:when test="$mm = '09'">10</xsl:when> <xsl:when test="$mm = '10'">10</xsl:when> <xsl:when test="$mm = '11'">10</xsl:when> <xsl:when test="$mm = '12'">10</xsl:when> <xsl:when test="$mm = '13'">15</xsl:when> <xsl:when test="$mm = '14'">15</xsl:when> <xsl:when test="$mm = '15'">15</xsl:when> <xsl:when test="$mm = '16'">15</xsl:when> <xsl:when test="$mm = '17'">15</xsl:when> <xsl:when test="$mm = '18'">20</xsl:when> <xsl:when test="$mm = '19'">20</xsl:when> <xsl:when test="$mm = '20'">20</xsl:when> <xsl:when test="$mm = '21'">20</xsl:when> <xsl:when test="$mm = '22'">20</xsl:when> <xsl:when test="$mm = '23'">25</xsl:when> <xsl:when test="$mm = '24'">25</xsl:when> <xsl:when test="$mm = '25'">25</xsl:when> <xsl:when test="$mm = '26'">25</xsl:when> <xsl:when test="$mm = '27'">25</xsl:when> <xsl:when test="$mm = '28'">30</xsl:when> <xsl:when test="$mm = '29'">30</xsl:when> <xsl:when test="$mm = '30'">30</xsl:when> <xsl:when test="$mm = '31'">30</xsl:when> <xsl:when test="$mm = '32'">30</xsl:when> <xsl:when test="$mm = '33'">35</xsl:when> <xsl:when test="$mm = '34'">35</xsl:when> <xsl:when test="$mm = '35'">35</xsl:when> <xsl:when test="$mm = '36'">35</xsl:when> <xsl:when test="$mm = '37'">35</xsl:when> <xsl:when test="$mm = '38'">40</xsl:when> <xsl:when test="$mm = '39'">40</xsl:when> <xsl:when test="$mm = '40'">40</xsl:when> <xsl:when test="$mm = '41'">40</xsl:when> <xsl:when test="$mm = '42'">40</xsl:when> <xsl:when test="$mm = '43'">45</xsl:when> <xsl:when test="$mm = '44'">45</xsl:when> <xsl:when test="$mm = '45'">45</xsl:when> <xsl:when test="$mm = '46'">45</xsl:when> <xsl:when test="$mm = '47'">45</xsl:when> <xsl:when test="$mm = '48'">50</xsl:when> <xsl:when test="$mm = '49'">50</xsl:when> <xsl:when test="$mm = '50'">50</xsl:when> <xsl:when test="$mm = '51'">50</xsl:when> <xsl:when test="$mm = '52'">50</xsl:when> <xsl:when test="$mm = '53'">55</xsl:when> <xsl:when test="$mm = '54'">55</xsl:when> <xsl:when test="$mm = '55'">55</xsl:when> <xsl:when test="$mm = '56'">56</xsl:when> <xsl:when test="$mm = '57'">57</xsl:when> <xsl:when test="$mm = '58'">58</xsl:when> <xsl:when test="$mm = '59'">59</xsl:when> <xsl:otherwise>Erreur arrondi (<xsl:value-of select="$mm"/>)</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="minutta"> <!-- minutes --> <xsl:param name="mm" /> <xsl:choose> <xsl:when test="$mm = '00'"></xsl:when> <xsl:when test="$mm = '01'"><t>stàrk</t> </xsl:when> <xsl:when test="$mm = '02'"><t>stàrk</t> </xsl:when> <xsl:when test="$mm = '03'"><t>stàrk</t> </xsl:when> <xsl:when test="$mm = '05'"><t>fìmf</t> <t>àb</t> </xsl:when> <xsl:when test="$mm = '10'"><t>zeh</t> <t>àb</t> </xsl:when> <xsl:when test="$mm = '15'"><t>viartel</t> <t>àb</t> </xsl:when> <xsl:when test="$mm = '20'"><t>zwànzig</t> <t>àb</t> </xsl:when> <xsl:when test="$mm = '25'"><t>fìmf</t> <t>bis</t> <t>hàlwer</t> </xsl:when> <xsl:when test="$mm = '30'"><t>hàlwer</t> </xsl:when> <xsl:when test="$mm = '35'"><t>fìmf</t> <t>àb</t> <t>hàlwer</t> </xsl:when> <xsl:when test="$mm = '40'"><t>zwànzig</t> <t>bis</t> </xsl:when> <xsl:when test="$mm = '45'"><t>drèi</t> <t>viartel</t> </xsl:when> <xsl:when test="$mm = '50'"><t>zeh</t> <t>bis</t> </xsl:when> <xsl:when test="$mm = '55'"><t>fìmf</t> <t>bis</t> </xsl:when> <xsl:when test="$mm = '56'"><t>viar</t> <t>bis</t> </xsl:when> <xsl:when test="$mm = '57'"><t>drèi</t> <t>bis</t> </xsl:when> <xsl:when test="$mm = '58'"><t>zwei</t> <t>bis</t> </xsl:when> <xsl:when test="$mm = '59'"><t>fàscht</t> </xsl:when> <xsl:otherwise>Erreur minutta (<xsl:value-of select="$mm"/>)</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="stund_decal"> <!-- determine le decalage par rapport a l'heure --> <xsl:param name="mm" /> <xsl:choose> <xsl:when test="$mm='00' or $mm='01' or $mm='02' or $mm='03' or $mm='05' or $mm='10' or $mm='15' or $mm='20'">idem</xsl:when> <xsl:when test="$mm='25' or $mm='30' or $mm='35' or $mm='40' or $mm='45' or $mm='50' or $mm='55' or $mm='56' or $mm='57' or $mm='58' or $mm='59'">next</xsl:when> <xsl:otherwise>Erreur stund_decal (<xsl:value-of select="$mm"/>)</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="stund"> <!-- heure --> <xsl:param name="hh" /> <xsl:param name="decal" /> <t> <xsl:choose> <xsl:when test="($hh='00' and $decal='idem') or ($hh='23' and $decal='next')">zwälfa</xsl:when> <xsl:when test="($hh='01' and $decal='idem') or ($hh='00' and $decal='next')">eins</xsl:when> <xsl:when test="($hh='02' and $decal='idem') or ($hh='01' and $decal='next')">zwei</xsl:when> <xsl:when test="($hh='03' and $decal='idem') or ($hh='02' and $decal='next')">drèi</xsl:when> <xsl:when test="($hh='04' and $decal='idem') or ($hh='03' and $decal='next')">viara</xsl:when> <xsl:when test="($hh='05' and $decal='idem') or ($hh='04' and $decal='next')">fìmfa</xsl:when> <xsl:when test="($hh='06' and $decal='idem') or ($hh='05' and $decal='next')">sechsa</xsl:when> <xsl:when test="($hh='07' and $decal='idem') or ($hh='06' and $decal='next')">sìewena</xsl:when> <xsl:when test="($hh='08' and $decal='idem') or ($hh='07' and $decal='next')">àchta</xsl:when> <xsl:when test="($hh='09' and $decal='idem') or ($hh='08' and $decal='next')">niina</xsl:when> <xsl:when test="($hh='10' and $decal='idem') or ($hh='09' and $decal='next')">zehna</xsl:when> <xsl:when test="($hh='11' and $decal='idem') or ($hh='10' and $decal='next')">elfa</xsl:when> <xsl:when test="($hh='12' and $decal='idem') or ($hh='11' and $decal='next')">zwälfa</xsl:when> <xsl:when test="($hh='13' and $decal='idem') or ($hh='12' and $decal='next')">eins</xsl:when> <xsl:when test="($hh='14' and $decal='idem') or ($hh='13' and $decal='next')">zwei</xsl:when> <xsl:when test="($hh='15' and $decal='idem') or ($hh='14' and $decal='next')">drèi</xsl:when> <xsl:when test="($hh='16' and $decal='idem') or ($hh='15' and $decal='next')">viara</xsl:when> <xsl:when test="($hh='17' and $decal='idem') or ($hh='16' and $decal='next')">fìmfa</xsl:when> <xsl:when test="($hh='18' and $decal='idem') or ($hh='17' and $decal='next')">sechsa</xsl:when> <xsl:when test="($hh='19' and $decal='idem') or ($hh='18' and $decal='next')">sìewena</xsl:when> <xsl:when test="($hh='20' and $decal='idem') or ($hh='19' and $decal='next')">àchta</xsl:when> <xsl:when test="($hh='21' and $decal='idem') or ($hh='20' and $decal='next')">niina</xsl:when> <xsl:when test="($hh='22' and $decal='idem') or ($hh='21' and $decal='next')">zehna</xsl:when> <xsl:when test="($hh='23' and $decal='idem') or ($hh='22' and $decal='next')">elfa</xsl:when> <xsl:otherwise>Erreur hh [<xsl:value-of select="$hh"/>] decal [<xsl:value-of select="$decal"/>]</xsl:otherwise> </xsl:choose> </t> </xsl:template> </xsl:stylesheet>
Résultat
07
58
zwei
bis
àchta
v
^
Montrer le détail
heure affichée sous forme de texte, par la transformation
transfo_
heure_affiche
_html.xsl
?
↓ XSL
<?xml version ="1.0" encoding="UTF-8"?> <!-- Nom de fichier : transfo_heure_affiche_html.xsl --> <!-- Creation : MiLib - 06/03/2015 - Licence GPL --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" /> <xsl:template match="/"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="description" content="heure écrite en alsacien"/> </head> <body> <xsl:for-each select="//t"> <xsl:if test=".!=''"> <xsl:value-of select="."/> <xsl:text> </xsl:text> </xsl:if> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
Résultat
zwei bis àchta
-
^
Montrer le détail
écoute audio de l'heure, par la transformation
transfo_
heure_audio
_html.xsl
?
↓ XSL
<?xml version ="1.0" encoding="UTF-8"?> <!-- Nom de fichier : transfo_heure_audio_html.xsl --> <!-- Creation : MiLib - 06/03/2015 - Licence GPL --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" /> <xsl:template match="/"> <!-- html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr" --> <html> <head> <title>Heure audio</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="description" content="Texte audio"/> <STYLE type="text/css"> span.son { border: 1px dotted grey; color: #000000; background-color:#FFFFFF; } </STYLE> <script src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script> <SCRIPT> $(document).ready(function(){ // Joue la succession des players audio $("input#play_audioV1").click(function(){ var nowPlaying; nowPlaying = $("#playerV1_0").get(0); nowPlaying.load(); nowPlaying.play(); nowPlaying = null; $('#playerV1_0').on('ended', function(){ <xsl:for-each select="//t"> <xsl:if test=".!=''"> nowPlaying = $("#playerV1_<xsl:value-of select='position()'/>_<xsl:value-of select='.'/>").get(0); nowPlaying.load(); nowPlaying.play(); nowPlaying = null; $("#span_<xsl:value-of select='position()'/>_<xsl:value-of select='.'/>").css({ 'border' : '1px dotted red', 'color' : '#A00000', 'background-color' : '#FFF0F0' }); $('#playerV1_<xsl:value-of select='position()'/>_<xsl:value-of select='.'/>').on('ended', function(){ </xsl:if> </xsl:for-each> nowPlaying.load(); nowPlaying.play(); nowPlaying = null; <xsl:for-each select="//t"> <xsl:if test=".!=''">}); </xsl:if> </xsl:for-each> }); }); $("input#play_audioV2").click(function(){ var nowPlaying; nowPlaying = $("#playerV2_0").get(0); nowPlaying.load(); nowPlaying.play(); nowPlaying = null; $('#playerV2_0').on('ended', function(){ <xsl:for-each select="//t"> <xsl:if test=".!=''"> nowPlaying = $("#playerV2_<xsl:value-of select='position()'/>_<xsl:value-of select='.'/>").get(0); nowPlaying.load(); nowPlaying.play(); nowPlaying = null; $("#span_<xsl:value-of select='position()'/>_<xsl:value-of select='.'/>").css({ 'border' : '1px dotted green', 'color' : '#00A000', 'background-color' : '#F0FFF0' }); $('#playerV2_<xsl:value-of select='position()'/>_<xsl:value-of select='.'/>').on('ended', function(){ </xsl:if> </xsl:for-each> nowPlaying.load(); nowPlaying.play(); nowPlaying = null; <xsl:for-each select="//t"> <xsl:if test=".!=''">}); </xsl:if> </xsl:for-each> }); }); }); </SCRIPT> </head> <body> <audio id="playerV1_0"><source src="son/silence.mp3"/> </audio> <xsl:for-each select="//t"> <xsl:if test=".!=''"> <audio id="playerV1_{position()}_{.}"><source src="son/1/{.}.mp3"/></audio> </xsl:if> </xsl:for-each> <audio id="playerV2_0"><source src="son/silence.mp3"/> </audio> <xsl:for-each select="//t"> <xsl:if test=".!=''"> <audio id="playerV2_{position()}_{.}"><source src="son/2/{.}.mp3"/></audio> </xsl:if> </xsl:for-each> <xsl:for-each select="//t"> <xsl:if test=".!=''"> <span id="span_{position()}_{.}"><xsl:value-of select="." class="son"/></span> <xsl:text> </xsl:text> </xsl:if> </xsl:for-each> <br/><br/> <input type="button" id="play_audioV1" value="Ecouter le son" /> <xsl:text> </xsl:text> <input type="button" id="play_audioV2" value="Ecouter autre voix" /> </body> </html> </xsl:template> </xsl:stylesheet>
Résultat
Heure audio
zwei
bis
àchta
-
^
Montrer le détail
dessin d'une horloge, par la transformation
transfo_
heure_dessin
_html.xsl
?
↓ XSL
<?xml version ="1.0" encoding="UTF-8"?> <!-- Nom de fichier : transfo_heure_dessin_html.xsl --> <!-- Creation : MiLib - 10/05/2017 - Licence GPL --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" /> <xsl:template match="/"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="description" content="dessin explicatif de l'heure en alsacien"/> </head> <body> <xsl:for-each select="//t"> <xsl:if test=".!=''"> <xsl:value-of select="."/> <xsl:text> </xsl:text> </xsl:if> </xsl:for-each> <!-- angles de la position relle des aiguilles --> <xsl:variable name="angle_heur" select="((zitt/src/hh) * 60 + (zitt/src/mm)) div 720 * 360 "/> <xsl:variable name="angle_minu" select="(zitt/src/mm) div 60 * 360"/> <div> <svg id="clock" viewBox="0 0 200 200"> <circle id="face" cx="100" cy="100" r="75" fill="#E0E0A0"></circle> <path id="portion_rose" d="M100,35A20,20 0 0,1 100,165" fill="pink"></path> <!-- trouve sur https://www.developpez.net/forums/d1236155/webmasters-developpement-web/balisage-x-html-validation-w3c/svg-dessiner-arc-cercle/ --> <path id="portion_verte" d="M100,165A20,20 0 0,1 100,35" fill="lightgreen"></path> <path id="portion_verte" d="M100,165A20,20 0 0,1 100,35" fill="lightgreen" transform="rotate(330 100 100)"></path> <g id="nums"> <rect id="num12" x="96" y="25" width="8" height="8" fill="red" transform="rotate(0 100 100)"></rect> <rect id="num1" x="96" y="25" width="8" height="8" fill="red" transform="rotate(30 100 100)"></rect> <rect id="num2" x="96" y="25" width="8" height="8" fill="red" transform="rotate(60 100 100)"></rect> <rect id="num3" x="96" y="25" width="8" height="8" fill="red" transform="rotate(90 100 100)"></rect> <rect id="num4" x="96" y="25" width="8" height="8" fill="red" transform="rotate(120 100 100)"></rect> <rect id="num5" x="96" y="25" width="8" height="8" fill="green" transform="rotate(150 100 100)"></rect> <rect id="num6" x="96" y="25" width="8" height="8" fill="green" transform="rotate(180 100 100)"></rect> <rect id="num7" x="96" y="25" width="8" height="8" fill="green" transform="rotate(210 100 100)"></rect> <rect id="num8" x="96" y="25" width="8" height="8" fill="green" transform="rotate(240 100 100)"></rect> <rect id="num9" x="96" y="25" width="8" height="8" fill="green" transform="rotate(270 100 100)"></rect> <rect id="num10" x="96" y="25" width="8" height="8" fill="green" transform="rotate(300 100 100)"></rect> <rect id="num11" x="96" y="25" width="8" height="8" fill="green" transform="rotate(330 100 100)"></rect> <text x="94" y="50" fill="black" style="font-family:arial;font-size:8px;">12</text> <text x="122" y="56" fill="black" style="font-family:arial;font-size:8px;">1</text> <text x="142" y="74" fill="black" style="font-family:arial;font-size:8px;">2</text> <text x="150" y="102" fill="black" style="font-family:arial;font-size:8px;">3</text> <text x="143" y="130" fill="black" style="font-family:arial;font-size:8px;">4</text> <text x="125" y="147" fill="black" style="font-family:arial;font-size:8px;">5</text> <text x="97" y="155" fill="black" style="font-family:arial;font-size:8px;">6</text> <text x="70" y="147" fill="black" style="font-family:arial;font-size:8px;">7</text> <text x="50" y="130" fill="black" style="font-family:arial;font-size:8px;">8</text> <text x="42" y="104" fill="black" style="font-family:arial;font-size:8px;">9</text> <text x="50" y="75" fill="black" style="font-family:arial;font-size:8px;">10</text> <text x="70" y="55" fill="black" style="font-family:arial;font-size:8px;">11</text> </g> <g id="aiguilles"> <rect id="aigui_heur" x="94" y="70" width="12" height="37" fill="#202020" transform="rotate({$angle_heur} 100 100)"></rect> <rect id="aigui_minu" x="96" y="50" width="8" height="60" fill="#606060" transform="rotate({$angle_minu} 100 100)"></rect> <circle id="center" cx="100" cy="100" r="1" fill="#E0E0A0"></circle> </g> <xsl:choose> <xsl:when test="zitt/stund/t='zwälfa'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(0 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='eins'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(30 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='zwei'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(60 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='drèi'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(90 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='viara'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(120 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='fìmfa'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(150 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='sechsa'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(180 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='sìewena'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(210 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='àchta'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(240 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='niina'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(270 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='zehna'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(300 100 100)"></circle> </xsl:when> <xsl:when test="zitt/stund/t='elfa'"> <circle id="repere_heur" cx="100" cy="46" r="12" stroke="blue" fill="none" transform="rotate(330 100 100)"></circle> </xsl:when> </xsl:choose> <xsl:choose> <xsl:when test="zitt/minutta/t='àb'"> <text x="175" y="30" fill="red" style="font-family:arial;font-size:16px;">àb</text> <xsl:choose> <xsl:when test="zitt/minutta/t='fìmf' and zitt/minutta/t='hàlwer'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="green" transform="rotate(210 100 100)"></rect> <path id="arc_vert" d="M100,6 A94,94 0 0,0 100,194" stroke="darkgreen" fill="none"></path> <path id="arc_vert" d="M100,198 A98,98 0 0,1 52,186" stroke="red" fill="none"></path> </xsl:when> <xsl:when test="zitt/minutta/t='fìmf'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="red" transform="rotate(30 100 100)"></rect> <path id="arc_rouge" d="M100,6 A94,94 0 0,1 146,17" stroke="red" fill="none"></path> </xsl:when> <xsl:when test="zitt/minutta/t='zeh'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="red" transform="rotate(60 100 100)"></rect> <path id="arc_rouge" d="M100,6 A94,94 0 0,1 184,54" stroke="red" fill="none"></path> </xsl:when> <xsl:when test="zitt/minutta/t='viartel'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="red" transform="rotate(90 100 100)"></rect> <path id="arc_rouge" d="M100,6 A94,94 0 0,1 196,100" stroke="red" fill="none"></path> </xsl:when> <xsl:when test="zitt/minutta/t='zwànzig'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="red" transform="rotate(120 100 100)"></rect> <path id="arc_rouge" d="M100,6 A94,94 0 0,1 182,150" stroke="red" fill="none"></path> </xsl:when> </xsl:choose> </xsl:when> <xsl:when test="zitt/minutta/t='bis'"> <text x="15" y="30" fill="green" style="font-family:arial;font-size:16px;">bis</text> <xsl:choose> <xsl:when test="zitt/minutta/t='fìmf' and zitt/minutta/t='hàlwer'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="green" transform="rotate(150 100 100)"></rect> <path id="arc_vert" d="M100,6 A94,94 0 0,0 100,194" stroke="darkgreen" fill="none"></path> <path id="arc_vert" d="M100,194 A94,94 0 0,0 146,182" stroke="lightgreen" fill="none"></path> </xsl:when> <xsl:when test="zitt/minutta/t='fìmf'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="green" transform="rotate(330 100 100)"></rect> <path id="arc_vert" d="M100,6 A94,94 0 0,0 52,18" stroke="green" fill="none"></path> </xsl:when> <xsl:when test="zitt/minutta/t='zeh'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="green" transform="rotate(300 100 100)"></rect> <path id="arc_vert" d="M100,6 A94,94 0 0,0 20,54" stroke="green" fill="none"></path> </xsl:when> <xsl:when test="zitt/minutta/t='zwànzig'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="green" transform="rotate(240 100 100)"></rect> <path id="arc_vert" d="M100,6 A94,94 0 0,0 20,148" stroke="green" fill="none"></path> </xsl:when> </xsl:choose> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="zitt/minutta/t='hàlwer'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="green" transform="rotate(180 100 100)"></rect> <path id="arc_vert" d="M100,6 A94,94 0 0,0 100,194" stroke="darkgreen" fill="none"></path> </xsl:when> <xsl:when test="zitt/minutta/t='drèi' and zitt/minutta/t='viartel'"> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="green" transform="rotate(270 100 100)"></rect> <path id="arc_vert" d="M100,6 A94,94 0 0,0 6,100" stroke="green" fill="none"></path> </xsl:when> <xsl:otherwise> <rect id="repere_minu" x="99" y="6" width="2" height="10" fill="gray" transform="rotate(0 100 100)"></rect> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> <circle id="centre" cx="100" cy="100" r="1" fill="#E0E0A0"></circle> </svg> </div> </body> </html> </xsl:template> </xsl:stylesheet>
Résultat
zwei bis àchta
12
1
2
3
4
5
6
7
8
9
10
11
bis
-