Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Conversation logs saved by Empathy are in XML format. Each one links to a stylesheet "empathy-log.xsl":

<?xml-stylesheet type="text/xsl" href="empathy-log.xsl"?>

I've trawled my hard drive and the web but cannot find it (there is a empathy-log-manager.xsl but this is different). Does it even exist? If there is no such file I'll create my own but I'd rather use the one provided.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

I also was unable to find empathy-log.xsl so I wrote my own. For anyone unable to do so I provide mine here:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" omit-xml-declaration="yes" /> 
<xsl:template match="/">
 <html>
 <head>
 <style type="text/css">
 ul { list-style-type:none; padding:0; }
 li { border:0.15em solid #ddd; margin-bottom:0.6em; padding:0.3em 0.3em 0 0.3em; background-color:#ffc; font-size:smaller; font-weight:bold; }
 div { font-size:larger; font-weight:normal; border-top:0.1em solid #8F8FFF; padding:0.3em; }
 </style>
 </head>
 <body>
 <ul>
  <xsl:for-each select="log/message[position()=1 or @name != preceding-sibling::message[1]/@name]">
   <li>
    <xsl:value-of select="@name"/>
    <div><xsl:value-of select="."/></div>
    <xsl:call-template name="nextText" />
   </li>
  </xsl:for-each>
 </ul>
 </body>
 </html>
</xsl:template>

<xsl:template name="nextText">
 <xsl:if test="@name = following-sibling::message[1]/@name">
  <xsl:for-each select="following-sibling::message[1]">
   <div><xsl:value-of select="."/></div>
   <xsl:call-template name="nextText"/>
  </xsl:for-each>
 </xsl:if>
</xsl:template>
</xsl:stylesheet>

Copy this code into a file empathy-log.xsl in the same folder as your logfile and rename the logfile to an .xml file. Now open the file in your browser.

share|improve this answer
add comment

You can use the locate-command to get the path of a file:

$ locate empathy-log.xsl

Just to be sure you should update the file-database before using locate:

$ sudo updatedb
share|improve this answer
    
Thanks but I'm certain the file isn't on my machine. I tried using locate anyways but it returned nothing. –  Tom Savage Jun 12 '10 at 13:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.