conversation history and display

Graham Booker <[email protected]>
Newsgroups gmane.network.fire.general
Message-ID <[email protected]>
I should start off with a call for help.  Anyone out there want to help 
out with Fire but you are not a programmer?  If you know CSS and/or 
XSLT and have some artistic skill, please contact me.  Basically I 
would like an XSTL that takes XML like the format below, makes HTML and 
then uses a CSS to create a nice pretty display.  Sound simple enough?  
For those that don't know, XSLT is a language for transforming XML 
documents.  Information available here:  http://www.w3.org/TR/xslt

Here is what I have been up to so far.  Here is an example log with the 
only modification being the screen names (as well as their display 
names) and the addition of the ip address.  Newlines are as they are in 
the file (assuming your client doesn't reformat this).
Just thought that you guys would like an update:

<?xml version="1.0"?>
<?xml-stylesheet 
href="http://fire.sourceforge.net/logs/simple_display.css" 
type="text/css"?>
<log began="2004-04-10 20:22:40 -0500" service="AIM" 
accountName="AIM-screenname1" server="login.oscar.aol.com"><envelope 
id="0"><sender nickname="screenname2">My Good Buddy</sender><message 
received="2004-04-10 20:22:40 -0500"><span style="color: #000000; font: 
12px Helvetica">Hey there...</span></message></envelope>
<envelope id="1"><sender self="yes" 
nickname="screenname1">Myself</sender><message received="2004-04-10 
20:22:46 -0500"><span style="color: #0000d5; font: 10px Times">What's 
up?</span></message></envelope>
<envelope id="2"><sender nickname="screenname2">My Good 
Buddy</sender><message received="2004-04-10 20:22:57 -0500"><span 
style="color: #000000; font: 12px Helvetica">Check out this picture I 
took:</span></message></envelope>
<event id="3" occurred="2004-04-10 20:23:08 
-0500"><sender>AIM</sender><ip>10.1.1.12:4443</ip><message 
service="yes"><span style="color: #555555; font: 10px Times">A direct 
connection has been established</span></message></event>
<envelope id="4"><sender nickname="screenname2">My Good 
Buddy</sender><message received="2004-04-10 20:23:09 -0500"><img 
src="DSCN3261.JPG"/></message></envelope>
<envelope id="5"><sender self="yes" 
nickname="screenname1">Myself</sender><message received="2004-04-10 
20:23:14 -0500"><span style="color: #0000d5; font: 10px 
Times">Cool!:)</span></message><message received="2004-04-10 20:23:18 
-0500"><span style="color: #0000d5; font: 10px Times">Well, I got to 
go.</span></message></envelope>
<event id="6" occurred="2004-04-10 20:23:22 
-0500"><sender>AIM</sender><message service="yes"><span style="color: 
#555555; font: 10px Times">The direct connection has been 
closed</span></message></event></log>


Things to note:
	The inline image is saved in the same directory as the conversation 
and will load in both a web browser as well as Fire's history browser 
(let me tell you, this was fun to get working).
	The emoticon is stored by the string that triggered it.  This way the 
emoticons can be changed without effect to what is logged.
	I plan to get the direct connection event to record the IP address as 
show above, but it is not in the code yet.  It will only take about 10 
more lines of code to add this.

Anyway, I and another Fire developer have been running this for several 
days now.  The only things left to do are a few edge cases.  We have 
posted a sample for the reasoning behind all this in the forums:
http://fire.sourceforge.net/forums/viewtopic.php?p=898#898

Looking forward to hearing some feedback on this.

------------------------------------------------------------------
Graham Booker                   Texas A&M University
[email protected]    Graduate Student in ELEN
------------------------------------------------------------------
smime.p7s (application/pkcs7-signature, 2.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.