|
Subject: [xsl] How to sort by elements of a function output? From: Leo Studer <leo.studer@xxxxxx> Date: Fri, 24 Apr 2009 18:04:39 +0200 |
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet type="text/xsl" href="results1.xsl"?>
<results>
<match date="1998-06-10">
<team score="2">Brazil</team>
<team score="1">Scotland</team>
</match>
<match date="1998-06-10">
<team score="2">Morocco</team>
<team score="2">Norway</team>
</match>
<match date="1998-06-16">
<team score="1">Scotland</team>
<team score="1">Norway</team>
</match>
<match date="1998-06-16">
<team score="3">Brazil</team>
<team score="0">Morocco</team>
</match>
<match date="1998-06-23">
<team score="1">Brazil</team>
<team score="2">Norway</team>
</match>
<match date="1998-06-23">
<team score="0">Scotland</team>
<team score="3">Morocco</team>
</match>
</results> <xsl:template match="/">
<html xsl:validation="strict">
<head>
<title>Spielresultate</title>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template> <xsl:template match="results">
<h2>Results</h2> <table cellpadding="10">
<thead>
<tr>
<td>Team</td>
<td>Played</td>
<td>Won</td>
<td>Lost</td>
<td>Drawn</td>
<td>For</td>
<td>Against</td>
<td>Points</td>
</tr>
</thead>Thanks in advance Leo
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] creating of id and refid, David Carlisle | Thread | Re: [xsl] How to sort by elements o, David Carlisle |
| Re: [xsl] Need test for preceding-s, Lars Huttar | Date | Re: [xsl] How to sort by elements o, David Carlisle |
| Month |