import transformacji

This commit is contained in:
root
2018-07-01 21:48:57 +02:00
parent 6da385e13e
commit be2e00956f
15 changed files with 120 additions and 0 deletions

5
transform/README Normal file
View File

@@ -0,0 +1,5 @@
Put any file containing transformation definitions here. They will be activated automatically.
Note: Transformation definition files must have the extension '*.transform'
Demo-files can be obtained from the archive 'distribution-demo-*.zip'.

3
transform/de.map Normal file
View File

@@ -0,0 +1,3 @@
CLOSED=zu
OPEN=offen
undefined=undefiniert

4
transform/en.map Normal file
View File

@@ -0,0 +1,4 @@
CLOSED=closed
OPEN=open
undefined=unknown

View File

@@ -0,0 +1,2 @@
Connection\ Lost=OFF
Connected=ON

View File

@@ -0,0 +1,2 @@
0=OFF
1=ON

7
transform/humidex.scale Normal file
View File

@@ -0,0 +1,7 @@
-=undefined
[-40,20]=no significant
[20,29]=comfortable
[29,38]=some discomfort
[38,45]=avoid exertion
[45,54]=dangerous
[54,100]=heat stroke imminent

View File

@@ -0,0 +1,6 @@
[-40,20]=nicht wesentlich
[20,29]=komfortabel
[29,38]=etwas unannehmlich
[38,45]=Anstrengung vermeiden
[45,54]=gefährlich
[54,100]=Hitzschlag bevorstehend

View File

@@ -0,0 +1,7 @@
-=indéfini
[-40,20]=non significatif
[20,29]=confortable
[29,38]=quelque inconfort
[38,45]=éviter de s'exposer
[45,54]=dangereux
[54,100]=coup de soleil imminent

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="//yweather:forecast/@high" />
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="//yweather:forecast/@low" />
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="//yweather:forecast/@text" />
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="//yweather:atmosphere/@humidity" />
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="//yweather:atmosphere/@pressure" />
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="//yweather:condition/@temp" />
</xsl:template>
</xsl:stylesheet>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" version="1.0">
<xsl:output indent="yes" method="xml" encoding="UTF-8" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:value-of select="//yweather:wind/@speed" />
</xsl:template>
</xsl:stylesheet>