Dimanche - Sonntag - Sunday
Samedi - Samstag - Saturday
Vendredi - Freitag - Friday
Jeudi - Donnerstag - Thursday
Mercredi - Mittwoch - Wednesday
Mardi - Dienstag - Tuesday
Lundi - Montag - Monday
Décembre - Dezember - December
Novembre - November - November
Octobre - Oktober - October
Septembre - September - September
Août - August - August
Juillet - Juli - July
Juin - Juni - June
Mai - Mai - May
Avril - April - April
Mars - März - March
Février - Februar - February
Janvier - Januar - January
Dunnschtig dr einazwànzigschta Novamber
Date audio
Dunnschtig
dr
einazwànzigschta
Novamber
Dunnschtig
21
Novamber
Montrer le détail du traitement
Déployer tous les contenus
Thursday
21
11
>
Montrer le détail
date exprimée en toutes lettres, mot par mot, par la transformation
transfo_
date
_xml.xsl
?
↓ XSL
<?xml version ="1.0" encoding="UTF-8"?> <!-- Nom de fichier : transfo_date_xml.xsl --> <!-- Creation : Milib le 20/01/2017 --> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="UTF-8"/> <xsl:template match="/"> <datum> <tag_namma><t> <xsl:call-template name="nom_jour"> <xsl:with-param name="d_week" select="date/d_week" /> </xsl:call-template> </t></tag_namma> <t>dr</t> <tag_num><xsl:value-of select="date/dd"/></tag_num> <tag><t> <xsl:call-template name="num_jour"> <xsl:with-param name="dd" select="date/dd" /> </xsl:call-template> </t></tag> <monet><t> <xsl:call-template name="nom_mois"> <xsl:with-param name="mm" select="date/mm" /> </xsl:call-template> </t></monet> </datum> </xsl:template> <xsl:template name="nom_jour"> <xsl:param name="d_week" /> <xsl:choose> <xsl:when test="$d_week = 'Monday'">Mantig</xsl:when> <xsl:when test="$d_week = 'Tuesday'">Zischtig</xsl:when> <xsl:when test="$d_week = 'Wednesday'">Mìttwuch</xsl:when> <xsl:when test="$d_week = 'Thursday'">Dunnschtig</xsl:when> <xsl:when test="$d_week = 'Friday'">Frittig</xsl:when> <xsl:when test="$d_week = 'Saturday'">Sàmschtig</xsl:when> <xsl:when test="$d_week = 'Sunday'">Sunntig</xsl:when> <xsl:otherwise>Erreur (<xsl:value-of select="$d_week"/>)</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="num_jour"> <xsl:param name="dd" /> <xsl:choose> <xsl:when test="$dd = '1'">èrschta</xsl:when> <xsl:when test="$dd = '2'">zweita</xsl:when> <xsl:when test="$dd = '3'">drìtta</xsl:when> <xsl:when test="$dd = '4'">viarta</xsl:when> <xsl:when test="$dd = '5'">fìmfta</xsl:when> <xsl:when test="$dd = '6'">sechsta</xsl:when> <xsl:when test="$dd = '7'">sìebta</xsl:when> <xsl:when test="$dd = '8'">àchtschta</xsl:when> <xsl:when test="$dd = '9'">niinta</xsl:when> <xsl:when test="$dd = '01'">èrschta</xsl:when> <xsl:when test="$dd = '02'">zweita</xsl:when> <xsl:when test="$dd = '03'">drìtta</xsl:when> <xsl:when test="$dd = '04'">viarta</xsl:when> <xsl:when test="$dd = '05'">fìmfta</xsl:when> <xsl:when test="$dd = '06'">sechsta</xsl:when> <xsl:when test="$dd = '07'">sìebta</xsl:when> <xsl:when test="$dd = '08'">àchtschta</xsl:when> <xsl:when test="$dd = '09'">niinta</xsl:when> <xsl:when test="$dd = '10'">zehnta</xsl:when> <xsl:when test="$dd = '11'">elfta</xsl:when> <xsl:when test="$dd = '12'">zwälfta</xsl:when> <xsl:when test="$dd = '13'">drizehnta</xsl:when> <xsl:when test="$dd = '14'">viarzehnta</xsl:when> <xsl:when test="$dd = '15'">fufzehnta</xsl:when> <xsl:when test="$dd = '16'">sachzehnta</xsl:when> <xsl:when test="$dd = '17'">sìebzehnta</xsl:when> <xsl:when test="$dd = '18'">àchtzehnta</xsl:when> <xsl:when test="$dd = '19'">niinzehnta</xsl:when> <xsl:when test="$dd = '20'">zwànzigschta</xsl:when> <xsl:when test="$dd = '21'">einazwànzigschta</xsl:when> <xsl:when test="$dd = '22'">zweiazwànzigschta</xsl:when> <xsl:when test="$dd = '23'">drèiazwànzigschta</xsl:when> <xsl:when test="$dd = '24'">viarazwànzigschta</xsl:when> <xsl:when test="$dd = '25'">fìmfazwànzigschta</xsl:when> <xsl:when test="$dd = '26'">sechsazwànzigschta</xsl:when> <xsl:when test="$dd = '27'">sìewenazwànzigschta</xsl:when> <xsl:when test="$dd = '28'">àchtazwànzigschta</xsl:when> <xsl:when test="$dd = '29'">niinazwànzigschta</xsl:when> <xsl:when test="$dd = '30'">drissigschta</xsl:when> <xsl:when test="$dd = '31'">einadrissigschta</xsl:when> <xsl:otherwise>Erreur (<xsl:value-of select="$dd"/>)</xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="nom_mois"> <xsl:param name="mm" /> <xsl:choose> <xsl:when test="$mm = '01'">Janner</xsl:when> <xsl:when test="$mm = '02'">Hornung</xsl:when> <xsl:when test="$mm = '03'">März</xsl:when> <xsl:when test="$mm = '04'">Àwrìl</xsl:when> <xsl:when test="$mm = '05'">Mai</xsl:when> <xsl:when test="$mm = '06'">Juni</xsl:when> <xsl:when test="$mm = '07'">Juli</xsl:when> <xsl:when test="$mm = '08'">Àuigscht</xsl:when> <xsl:when test="$mm = '09'">Septamber</xsl:when> <xsl:when test="$mm = '10'">Oktower</xsl:when> <xsl:when test="$mm = '11'">Novamber</xsl:when> <xsl:when test="$mm = '12'">Dezamber</xsl:when> <xsl:otherwise>Erreur (<xsl:value-of select="$mm"/>)</xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>
Résultat
Dunnschtig
dr
21
einazwànzigschta
Novamber
v
^
Montrer le détail
date affichée sous forme de texte, par la transformation
transfo_
date_affiche
_html.xsl
?
↓ XSL
<?xml version ="1.0" encoding="UTF-8"?> <!-- Nom de fichier : transfo_date_affiche_html.xsl --> <!-- Creation : MiLib - 20/01/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="date é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
Dunnschtig dr einazwànzigschta Novamber
-
^
Montrer le détail
écoute audio de la date, par la transformation
transfo_
date_audio
_html.xsl
?
↓ XSL
<?xml version ="1.0" encoding="UTF-8"?> <!-- Nom de fichier : transfo_date_audio_html.xsl --> <!-- Creation : MiLib - 21/01/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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr" --> <html> <head> <title>Date audio</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta name="description" content="Texte audio"/> <STYLE type="text/css"> span.elem { 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()}_{.}" class="elem"><xsl:value-of select="."/></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
Date audio
Dunnschtig
dr
einazwànzigschta
Novamber
-
^
Montrer le détail
dessin d'un calendrier, par la transformation
transfo_
date_dessin
_html.xsl
?
↓ XSL
<?xml version ="1.0" encoding="UTF-8"?> <!-- Nom de fichier : transfo_date_dessin_html.xsl --> <!-- Creation : MiLib - 21/03/2018 - 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 d'un calendrier en alsacien"/> </head> <body> <div> <svg id="date" viewBox="0 0 100 130"> <rect width="90" height="120" style="fill:rgb(255,255,250);stroke-width:1;stroke:rgb(0,0,0)" /> <text y="20" fill="black" style="font-family:arial;font-size:12px;"><tspan x="45" text-anchor="middle"><xsl:value-of select="datum/tag_namma"/></tspan></text> <text y="80" fill="red" style="font-family:arial;font-size:60px;font-weight:bold;"><tspan x="45" text-anchor="middle"><xsl:value-of select="datum/tag_num"/></tspan></text> <text y="100" fill="black" style="font-family:arial;font-size:12px;"><tspan x="45" text-anchor="middle"><xsl:value-of select="datum/monet"/></tspan></text> </svg> </div> </body> </html> </xsl:template> </xsl:stylesheet>
Résultat
Dunnschtig
21
Novamber
-