diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-02-25 19:11:25 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:00 -0300 |
commit | 610fc659e802c05e14ec4e905f06a19b5306ce2a (patch) | |
tree | aa3b48047c06e78dad419ee5607a4a1017cdfd00 /doc/tutorials/qmladvancedtutorial/samegame/samegame4/highscores/score_style.xsl | |
parent | a7263b23e001b5281119edd3c5d9f49513503afb (diff) |
Added some QML tutorials to the documentation.
Diffstat (limited to 'doc/tutorials/qmladvancedtutorial/samegame/samegame4/highscores/score_style.xsl')
-rwxr-xr-x | doc/tutorials/qmladvancedtutorial/samegame/samegame4/highscores/score_style.xsl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/tutorials/qmladvancedtutorial/samegame/samegame4/highscores/score_style.xsl b/doc/tutorials/qmladvancedtutorial/samegame/samegame4/highscores/score_style.xsl new file mode 100755 index 000000000..670354c96 --- /dev/null +++ b/doc/tutorials/qmladvancedtutorial/samegame/samegame4/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> |