Microsoft Office Tutorials and References
In Depth Information
<title>Bestellung</title>
</head>
<body>
<h3>Bestellung</h3>
<xsl:apply-templates select="//kunde"/>
<table border="1" cellpadding="5" cellspacing="5">
<xsl:apply-templates select="//positionen"/></table>
</body>
</html>
</xsl:template>
<xsl:template match="kunde">
<p><xsl:value-of select="name"/><br />
<xsl:value-of select="strasse"/><br />
<xsl:value-of select="plz"/><xsl:text> </xsl:text> 
<xsl:value-of select="ort"/> </p>
</xsl:template>
<xsl:template match="positionen">
<tr>
<th>Nr</th>
<th>Beschreibung</th>
<th>Gebinde</th>
<th>Menge</th>
<th>Preis</th>
</tr>
<xsl:for-each select="position">
<tr>
<td><xsl:value-of select="artikelnr"/></td>
<td><xsl:value-of select="beschreibung"/></td>
<td><xsl:value-of select="gebinde"/></td>
<td><xsl:value-of select="menge"/></td>
<td><xsl:value-of
select="format-number(europreis, '##.###,00 &#8364;', 'euro')"/></
td></tr>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Search JabSto ::




Custom Search