Hi thanks Zulu,
any idea how can i integrate 2 history (under same person) from 2 systems into one ?
e.g. i have a contact called "eric" in laptop
another same contact "eric" in desktop
both has their own history recorded.
how do i integrate them into the same history to put into my desktop's MSN ?
thanks :)
Main Topics
Browse All Topics





by: zulu_11Posted on 2004-06-08 at 05:54:25ID: 11259373
MSN install this file "MessageLog.xsl" with the chat...but maybe it didn't in your case...copy the contents and save the file as MessageLog.xsl and when you want to view the CHAT Scripts...make sure that the chat XML and this XSL are in the same directory...
rg/1999/XS L/Transfor m"> ate</xsl:v ariable> ime</xsl:v ariable> rom</xsl:v ariable> /xsl:varia ble> ">Message< /xsl:varia ble> le> ily:verdan a; font-size:67%; text-align:left; vertical-align:top; table-layout:fixed</xsl:va riable> ex</xsl:va riable> bottom:1 solid black</xsl:variable> sl:variabl e> ckground-c olor:#e0ed ff</xsl:va riable> st">0</xsl :variable> et ms; font-size:120%">Debug Version</span> width:5ex;" /> </th> " /> " /> " /> age" /> > rst = 1"> ing" /> onResponse |Join|Leav e"> ing" /> ing"> />
I'm posting the XSL file
---------XSL FILE------------
<?xml version="1.0" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.o
- <!-- localized strings
-->
<xsl:variable name="ColumnHeader_Date">D
<xsl:variable name="ColumnHeader_Time">T
<xsl:variable name="ColumnHeader_From">F
<xsl:variable name="ColumnHeader_To">To<
<xsl:variable name="ColumnHeader_Message
- <!-- variables
-->
<xsl:variable name="Debug">0</xsl:variab
<xsl:variable name="TableStyle">font-fam
<xsl:variable name="GutterStyle">width:2
<xsl:variable name="HeaderStyle">border-
<xsl:variable name="UseZebraStripe">1</x
<xsl:variable name="ZebraStripeStyle">ba
<xsl:variable name="MostRecentSessionFir
- <xsl:template match="Log">
- <html dir="ltr">
- <head>
- <title>
Message Log for
<xsl:value-of select="@LogonName" />
<xsl:if test="$Debug = 1">(Debug)</xsl:if>
</title>
- <xsl:if test="$Debug = 1">
<span style="font-family:trebuch
<hr />
</xsl:if>
</head>
- <body style="margin:0">
- <table id="BodyTable" style="{$TableStyle}" cellspacing="0">
- <xsl:if test="$Debug = 1">
<col style="vertical-align:top;
<col style="{$GutterStyle}" />
</xsl:if>
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:16ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:21ex;" />
<col style="{$GutterStyle}" />
<col style="width:70ex;" />
- <thead>
- <tr>
- <xsl:if test="$Debug = 1">
<th style="{$HeaderStyle}">SID
<th />
</xsl:if>
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Date
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Time
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_From
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_To" />
</th>
<th />
- <th style="{$HeaderStyle}">
<xsl:value-of select="$ColumnHeader_Mess
</th>
</tr>
</thead>
- <tbody style="vertical-align:top"
- <xsl:choose>
- <!-- newest session first
-->
- <xsl:when test="$MostRecentSessionFi
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="descending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:when>
- <!-- oldest session first
-->
- <xsl:otherwise>
- <xsl:apply-templates>
<xsl:sort select="@SessionID" order="ascending" data-type="number" />
<xsl:sort select="@DateTime" order="ascending" />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</tbody>
</table>
</body>
</html>
</xsl:template>
- <xsl:template match="Message">
- <tr>
<xsl:call-template name="CommonMessageProcess
- <td>
<xsl:apply-templates select="From/User" />
</td>
<td />
- <td>
<xsl:apply-templates select="To/User" />
</td>
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="Invitation|Invitati
- <tr>
<xsl:call-template name="CommonMessageProcess
<td />
- <!-- From
-->
<td />
<td />
- <!-- To
-->
<td />
- <td>
- <span>
- <xsl:attribute name="style">
<xsl:value-of select="Text/@Style" />
</xsl:attribute>
<xsl:value-of select="Text" />
</span>
</td>
</tr>
</xsl:template>
- <xsl:template match="User">
- <!-- add a comma before all but the first user
-->
<xsl:if test="position() != 1">,</xsl:if>
<xsl:value-of select="@FriendlyName" />
</xsl:template>
- <xsl:template name="CommonMessageProcess
- <!-- zebra-stripe the sessions
-->
- <xsl:if test="$UseZebraStripe = 1">
- <xsl:if test="(@SessionID mod 2) = 1">
- <xsl:attribute name="style">
<xsl:value-of select="$ZebraStripeStyle"
</xsl:attribute>
</xsl:if>
</xsl:if>
- <xsl:if test="$Debug = 1">
- <td>
<xsl:value-of select="@SessionID" />
</td>
<td />
</xsl:if>
- <td>
<xsl:value-of select="@Date" />
</td>
<td />
- <td>
<xsl:value-of select="@Time" />
</td>
<td />
</xsl:template>
</xsl:stylesheet>
______________________
Zulu