summaryrefslogtreecommitdiffstats
path: root/examples/declarative/demos/samegame/qml/samegame/highscores/score_style.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/demos/samegame/qml/samegame/highscores/score_style.xsl')
-rw-r--r--examples/declarative/demos/samegame/qml/samegame/highscores/score_style.xsl28
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/declarative/demos/samegame/qml/samegame/highscores/score_style.xsl b/examples/declarative/demos/samegame/qml/samegame/highscores/score_style.xsl
new file mode 100644
index 00000000..670354c9
--- /dev/null
+++ b/examples/declarative/demos/samegame/qml/samegame/highscores/score_style.xsl
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:template match="/">
+ <html>
+ <head><title>SameGame High Scores</title></head>
+ <body>
+ <h2>SameGame High Scores</h2>
+ <table border="1">
+ <tr bgcolor="lightsteelblue">
+ <th>Name</th>
+ <th>Score</th>
+ <th>Grid Size</th>
+ <th>Time, s</th>
+ </tr>
+ <xsl:for-each select="records/record">
+ <xsl:sort select="score" data-type="number" order="descending"/>
+ <tr>
+ <td><xsl:value-of select="name"/></td>
+ <td><xsl:value-of select="score"/></td>
+ <td><xsl:value-of select="gridSize"/></td>
+ <td><xsl:value-of select="seconds"/></td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </body>
+ </html>
+</xsl:template>
+</xsl:stylesheet>