note 109219 deleted from function.spliti by danbrown

From: Date: Wed, 27 Jun 2012 16:35:23 +0000
Subject: note 109219 deleted from function.spliti by danbrown
References: 1  Groups: php.notes php.notes 
Request: Send a blank email to php-notes+get-188926@lists.php.net to get a copy of this message
Note Submitter: max dot mueller dot 65 at gmx dot de ---- <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) &lt; 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> <xsl:param name="art">C</xsl:param> <xsl:template match="weather"> <dt><xsl:value-of select="@measured"/></dt> <xsl:choose> <xsl:when test="$art='F'"> <dd><xsl:value-of select="((temperature*9) div 5 )+32"/> F</dd> </xsl:when> <xsl:otherwise> <dd><xsl:value-of select="temperature"/> <xsl:value-of select="temperature/@unit"/></dd> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:param name="isin"></xsl:param> <xsl:template match="/aktien"> <html><head><title>Aktien</title></head> <body><xsl:apply-templates select="aktie"/></body> </html> </xsl:template> <xsl:template match="aktie"> <xsl:choose> <xsl:when test="(@isin = $isin) or ($isin = '')"> <p> Name: <xsl:value-of select="name"/><br/> Mittelwert: <xsl:value-of select="fn:format-number(sum(kurse/kurs/ausgabepreis) div count(kurse/kurs),'0.00')"/> </p> </xsl:when> </xsl:choose> </xsl:template> </xsl:stylesheet>

« previous php.notes (#188926) next »