note 109177 deleted from function.split by tularis
| From: | tularis@php.net | Date: | Tue, 26 Jun 2012 12:20:42 +0000 |
| Subject: | note 109177 deleted from function.split by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188804@lists.php.net to get a copy of this message | ||
Note Submitter: deutschland dot php at gmail dot com
----
<xsl:template match="/fahrplan">
<html>
<head>
<title>Von <xsl:value-of select="@von"/> nach <xsl:value-of
select="@nach"/></title>
</head>
<body>
<h1>Von <xsl:value-of select="@von"/> nach <xsl:value-of
select="@nach"/></h1>
<ul>
<xsl:apply-templates select="verbindung"/>
</ul>
</body>
</html>
</xsl:template>
<xsl:template match="verbindung">
<xsl:if test="fn:count(umsteigen) < 3">
<li>
<b><xsl:value-of select="ab"/> - <xsl:value-of
select="an"/></b><br/>
Dauer: <xsl:value-of select="dauer"/> (<xsl:value-of
select="zug"/>, <xsl:value-of select="umsteigen/zug" separator=",
"/>)
</li>
</xsl:if>
</xsl:template>
<xsl:template match="/fluege">
<ul>
<xsl:for-each select="flug">
<li>
<xsl:value-of select="datum"/> (<xsl:value-of select="@id"/>)
<br/>
<xsl:variable name="von" select="von"/>
<xsl:variable name="nach" select="nach"/>
von <xsl:value-of select="/fluege/ort[@id = $von]"/> nach <xsl:value-of
select="/fluege/ort[@id = $nach]"/> <br/>
Klassen: <xsl:value-of select="klasse" separator=", "/>
</li>
</xsl:for-each>
</ul>
</xsl:template>
<xsl:template match="/history">
<html>
<head>
<title>Wetter</title>
</head>
<body>
<dl>
<xsl:apply-templates select="weather"/>
</dl>
<h3>Durchschnitt</h3>
<xsl:value-of select="fn:format-number(sum(weather/rain) div
count(weather/rain),'0.0')"/>
</body>
</html>
</xsl:template>