killingtime
10th-October-2005, 05:46 PM
I was bored and I'm a geek. Therefore I spent a little bit of time developing an XSLT stylesheet to take a PM XML dump and render it in HTML (not in a very pretty way though). My aim was to allow it to be transformed on a browser (which excluded some of the new toys you get in XSLT 2.0 :tears: ). I'm sure you don't care about what I feel it is missing though.
Hopefully the stylesheet should be attached, as a zip file since I couldn’t upload an XML or XSLT file (along with a sample, and fictional, private message file). To use it on your own private messages there is an option to "Download All Private Messages as:" XML then you'll need to open that file in some form of text editor (like notepad :sick:) and add the line:
<?xml-stylesheet type="text/xsl" href="pm2html.xsl" ?>
just under the first line so it should look something like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="pm2html.xsl" ?>
(assuming you put the pm2html.xsl file in the same directory as the private message file). Then you should be able to open up your private message file in the browser and hey presto! an achieve (not a very pretty one) of your PMs. As XSLT isn't that good at text parsing then it is unlikely I'll ever add a way to see quotes highlighted in a particular way or smilies to appear.
Anyway I made it for my own use but if you do use it I'd love to know what you thought. Hope these instructions are ok and if not I can try clarifying anything. Also if people think it would be handy I can upload the XSLT onto a server somewhere.
Oh. I should mention it works under IE but looks a bit crap (since it doesn't do word wrap). Good under Firefox and I haven't had a chance to see if it works under Safari or Opera yet.
Hopefully the stylesheet should be attached, as a zip file since I couldn’t upload an XML or XSLT file (along with a sample, and fictional, private message file). To use it on your own private messages there is an option to "Download All Private Messages as:" XML then you'll need to open that file in some form of text editor (like notepad :sick:) and add the line:
<?xml-stylesheet type="text/xsl" href="pm2html.xsl" ?>
just under the first line so it should look something like:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="pm2html.xsl" ?>
(assuming you put the pm2html.xsl file in the same directory as the private message file). Then you should be able to open up your private message file in the browser and hey presto! an achieve (not a very pretty one) of your PMs. As XSLT isn't that good at text parsing then it is unlikely I'll ever add a way to see quotes highlighted in a particular way or smilies to appear.
Anyway I made it for my own use but if you do use it I'd love to know what you thought. Hope these instructions are ok and if not I can try clarifying anything. Also if people think it would be handy I can upload the XSLT onto a server somewhere.
Oh. I should mention it works under IE but looks a bit crap (since it doesn't do word wrap). Good under Firefox and I haven't had a chance to see if it works under Safari or Opera yet.