ap@webkit.org | fbee6ca | 2007-11-23 08:29:59 +0000 | [diff] [blame] | 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 | <body> |
| 6 | <script> |
rniwa@webkit.org | 224c8b5 | 2012-08-04 01:13:22 +0000 | [diff] [blame] | 7 | if (window.testRunner) |
| 8 | testRunner.dumpAsText(); |
ap@webkit.org | fbee6ca | 2007-11-23 08:29:59 +0000 | [diff] [blame] | 9 | </script> |
| 10 | <h2>lower-first</h2> |
| 11 | <table border="1"> |
| 12 | <tr bgcolor="#9acd32"> |
| 13 | <th>Title</th> |
| 14 | <th>Artist</th> |
| 15 | </tr> |
| 16 | <xsl:for-each select="catalog/cd"> |
| 17 | <xsl:sort select="artist" data-type="text" order="ascending" case-order="lower-first" /> |
| 18 | <tr> |
| 19 | <td><xsl:value-of select="title"/></td> |
| 20 | <td><xsl:value-of select="artist"/></td> |
| 21 | </tr> |
| 22 | </xsl:for-each> |
| 23 | </table> |
| 24 | <h2>upper-first</h2> |
| 25 | <table border="1"> |
| 26 | <tr bgcolor="#9acd32"> |
| 27 | <th>Title</th> |
| 28 | <th>Artist</th> |
| 29 | </tr> |
| 30 | <xsl:for-each select="catalog/cd"> |
| 31 | <xsl:sort select="artist" data-type="text" order="ascending" case-order="upper-first" /> |
| 32 | <tr> |
| 33 | <td><xsl:value-of select="title"/></td> |
| 34 | <td><xsl:value-of select="artist"/></td> |
| 35 | </tr> |
| 36 | </xsl:for-each> |
| 37 | </table> |
| 38 | </body> |
| 39 | </html> |
| 40 | </xsl:template> |
| 41 | </xsl:stylesheet> |