~loic.molinari/+junk/qtdeclarative-shadereffectsource-changes

« back to all changes in this revision

Viewing changes to examples/tutorials/samegame/samegame4/highscores/score_style.xsl

  • Committer: Loïc Molinari
  • Date: 2012-04-21 17:59:51 UTC
  • Revision ID: loic.molinari@canonical.com-20120421175951-bqx68caaf5zrp76l
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-1"?>
 
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
3
<xsl:template match="/">
 
4
  <html>
 
5
  <head><title>SameGame High Scores</title></head>
 
6
  <body>
 
7
  <h2>SameGame High Scores</h2>
 
8
    <table border="1">
 
9
      <tr bgcolor="lightsteelblue">
 
10
        <th>Name</th>
 
11
        <th>Score</th>
 
12
        <th>Grid Size</th>
 
13
        <th>Time, s</th>
 
14
      </tr>
 
15
      <xsl:for-each select="records/record">
 
16
      <xsl:sort select="score" data-type="number" order="descending"/>
 
17
      <tr>
 
18
        <td><xsl:value-of select="name"/></td>
 
19
        <td><xsl:value-of select="score"/></td>
 
20
        <td><xsl:value-of select="gridSize"/></td>
 
21
        <td><xsl:value-of select="seconds"/></td>
 
22
      </tr>
 
23
      </xsl:for-each>
 
24
    </table>
 
25
  </body>
 
26
  </html>
 
27
</xsl:template>
 
28
</xsl:stylesheet>