MSN的聊天记录采用xml来保存,通过XSLT来转换xml的在IE中显示
1.打开MessageLog.xsl(与聊天记录的xml文件在同一目录)
2.<xsl:variable name='Debug'>0</xsl:variable>将debug的值由0改成1,则转成debug模式
3.<xsl:variable name='MostRecentSessionFirst'>0</xsl:variable>将MostRecentSessionFirst的值由0改成1,
则会按SessionID递减排序(将最近的日期的消息排前面),MSN的每条聊天记录都会记录一个SessionID值.
代码如下:
xml 代码 <!--newestsessionfirst--><!--MostRecentSessionFirst值为1时执行--><xsl:whentest="$MostRecentSessionFirst=1"><xsl:apply-templates><!--指定SessionID数据类型为number并将该字段descending递减排序--><xsl:sortselect='@SessionID'order='descending'data-type='number'/><!--DateTime日期时间ascending递增排序,如需按时间递减可把order值改成descending--><xsl:sortselect='@DateTime'order='ascending'/></xsl:apply-templates></xsl:when><!--oldestsessionfirst--><!--默认排序方式SessionID元素递增,DateTime元素递增来排--><xsl:otherwise><xsl:apply-templates><xsl:sortselect='@SessionID'order='ascending'data-type='number'/><xsl:sortselect='@DateTime'order='ascending'/></xsl:apply-templates></xsl:otherwise></xsl:choose>