/ Published in: XSLT
This is xslt file for twitter-logged xml file.
* cf. [Backup my twitter-log](http://snipplr.com/view/18925/backup-my-twitterlog/)
* cf. [Merge twitter-logged files into one xml-file](http://snipplr.com/view/18928/merge-twitterlogged-files-into-one-xmlfile/)
* cf. [Backup my twitter-log](http://snipplr.com/view/18925/backup-my-twitterlog/)
* cf. [Merge twitter-logged files into one xml-file](http://snipplr.com/view/18928/merge-twitterlogged-files-into-one-xmlfile/)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?xml version="1.0" encoding="UTF-8"?> <!-- vim: ts=2 sw=2 expandtab --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" encoding="UTF-8"/> <xsl:template match="/"> <html> <body> <xsl:for-each select="statuses/status"> <xsl:sort select="created_at.epoch" order="ascending" data-type="number"/> <tr> <xsl:apply-templates select="text" /> </tr> </xsl:for-each> </table> </xsl:template> <xsl:template match="text"> <xsl:choose> <xsl:when test="contains(., 'http://')"> <td> <xsl:value-of select="substring-before(., 'http://')"/> </td> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> </xsl:template> </xsl:stylesheet>