Ceroc Scotland Charity Champs
Scottish Charity Champs
Edinburgh: Sat. 18/10/08
(with Pre-Champs Party on Friday 17th October)

Ceroc Scotland Forum

Ceroc Scotland Homepage

Ceroc learn to dance the easy way!


Go Back   Ceroc Scotland Forum > Testing testing > Forum technical problems / Questions / Suggestions..

Forum technical problems / Questions / Suggestions.. Report any problem or ask a question about the Forum... Problems with registration, post here.
guests / unregistered can post here

Quick News
- Residential Focus BLUES Week-ender 5th/7th September. Friday, Saturday & Sunday parties open to everyone... With extra Blues Room on the Saturday night.
- Utopia Scotland Week-end: 27th/28th Sept. Edinburgh. @ St Stephens, Stockbridge,Edinburgh.
A Special week-end of Blues workshops and Utopia party nights + tea-dance with Guest teachers/DJ: Val & Dave.

Upgrade your Forum experience, become a SILVER MEMBER!
Benefits of Silver membership: - View what everyone is up to on the 'Who's online page, be invisible on the Forum, Create your own Blog, Join the Chat Rooms :) Remove Google Adverts, Filter new posts to avoid certain areas (e.g. Fun & Games, Chit Chat, Geek corner, etc...) when searching new posts, choose a custom avatar and have a Signature! Join today from as little as £6.00

Reply
 
LinkBack Thread Tools Display Modes
Old 10th-October-2005, 05:46 PM   #1 (permalink)
Registered User
 
killingtime's Avatar
 
Join Date: Jul 2005
Location: Edmonton, AB
Posts: 2,346
Status: No Status
Rep Power: 2 Rep.: 1053
killingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to all
Private Message Dump to HTML

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 ). 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 ) 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.
Attached Files
File Type: zip pm2html.zip (1.9 KB, 7 views)
killingtime is offline   Reply With Quote
Old 10th-October-2005, 10:04 PM   #2 (permalink)
Taxi Dancer
 
Aleks's Avatar
 
Join Date: Dec 2002
Location: Tarbrax
Posts: 2,378
Status: No Status
Rep Power: 3 Rep.: 880
Aleks is a glorious beacon of lightAleks is a glorious beacon of lightAleks is a glorious beacon of lightAleks is a glorious beacon of lightAleks is a glorious beacon of lightAleks is a glorious beacon of lightAleks is a glorious beacon of light
Re: Private Message Dump to HTML

Wooooosh!
Hope it works for all of you that understood that.
__________________
"Everything that happens to you is your teacher. The secret is to sit at the feet of your own life and be taught by it." Mahatma Gandhi
Aleks is offline   Reply With Quote
Old 10th-October-2005, 10:28 PM   #3 (permalink)
Lovely Moderator
 
ducasi's Avatar
 
Join Date: Feb 2005
Location: Glasgow
Posts: 9,653
Status: Looking forward to driving to Dundee!
Blog Entries: 1
Rep Power: 6 Rep.: 3290
ducasi is a splendid one to beholdducasi is a splendid one to beholdducasi is a splendid one to beholdducasi is a splendid one to beholdducasi is a splendid one to beholdducasi is a splendid one to beholdducasi is a splendid one to beholdducasi is a splendid one to beholdducasi is a splendid one to beholdducasi is a splendid one to beholdducasi is a splendid one to behold
Re: Private Message Dump to HTML

Quote:
Originally Posted by Aleks
Wooooosh!
Hope it works for all of you that understood that.
I understood it, but I've no idea if it works or not.

Sometime I'll write a perl script to turn the text output into mbox format files...

(Expecting to hear another whoosh any moment now...)
__________________
Let your mind go and your body will follow. – Steve Martin, LA Story
ducasi is offline   Reply With Quote
Old 10th-October-2005, 11:21 PM   #4 (permalink)
Meglio del Cioccolato Demo
 
azande's Avatar
 
Join Date: Jan 2003
Location: Edinburgh
Posts: 1,484
Status: No Status
Rep Power: 3 Rep.: 811
azande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of light
Re: Private Message Dump to HTML

It works in Safari, the only problem is that the text does not wrap.
azande is offline   Reply With Quote
Old 10th-October-2005, 11:50 PM   #5 (permalink)
Registered User
 
killingtime's Avatar
 
Join Date: Jul 2005
Location: Edmonton, AB
Posts: 2,346
Status: No Status
Rep Power: 2 Rep.: 1053
killingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to all
Re: Private Message Dump to HTML

Quote:
Originally Posted by azande
It works in Safari, the only problem is that the text does not wrap.
That's because white-space: pre-wrap isn't supported under Safari yet. To be fair it is a CSS 2.1 tag and none of the browsers support it as anything other than a browser extension at the moment.

I think this is a sort of wait and see bug. Good to know that Safari does XML+XSLT though .
killingtime is offline   Reply With Quote
Old 10th-October-2005, 11:51 PM   #6 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Midlands
Posts: 2,174
Status: No Status
Rep Power: 3 Rep.: 740
DavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of light
Re: Private Message Dump to HTML

Afraid I don't understand most of that - what I did was to export to XML, then set up a mini database in Access & import it in - it doesn't do smilies or quotes, but it sounds like Killingtime's doesn't either.

I have Access 2003 - not sure if earlier versions of Access would cope with XML. I imagine there are cheaper/free database packages that could do the same thing.
__________________
Love dance, will travel
DavidY is online now   Reply With Quote
Old 11th-October-2005, 12:03 AM   #7 (permalink)
Registered User
 
killingtime's Avatar
 
Join Date: Jul 2005
Location: Edmonton, AB
Posts: 2,346
Status: No Status
Rep Power: 2 Rep.: 1053
killingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to all
Re: Private Message Dump to HTML

Quote:
Originally Posted by DavidY
Afraid I don't understand most of that - what I did was to export to XML, then set up a mini database in Access & import it in - it doesn't do smilies or quotes, but it sounds like Killingtime's doesn't either.
It doesn't. Stupid CDATA .

Quote:
Originally Posted by DavidY
I have Access 2003 - not sure if earlier versions of Access would cope with XML. I imagine there are cheaper/free database packages that could do the same thing.
Ah; truely I am among geeks .
killingtime is offline   Reply With Quote
Old 11th-October-2005, 12:23 AM   #8 (permalink)
Meglio del Cioccolato Demo
 
azande's Avatar
 
Join Date: Jan 2003
Location: Edinburgh
Posts: 1,484
Status: No Status
Rep Power: 3 Rep.: 811
azande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of lightazande is a glorious beacon of light
Re: Private Message Dump to HTML

Quote:
Originally Posted by DavidY
I imagine there are cheaper/free database packages that could do the same thing.
MySQL should be able to import CSV files but I'm not even going to try !
azande is offline   Reply With Quote
Old 11th-October-2005, 09:26 AM   #9 (permalink)
LMC
Registered User
 
LMC's Avatar
 
Join Date: Jun 2005
Location: In the corner
Posts: 4,508
Status: No Status
Rep Power: 4 Rep.: 2319
LMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud of
Re: Private Message Dump to HTML

You guys DEFINITELY have too much time on your hands ( )
LMC is offline   Reply With Quote
Old 11th-October-2005, 10:03 AM   #10 (permalink)
Registered User
 
killingtime's Avatar
 
Join Date: Jul 2005
Location: Edmonton, AB
Posts: 2,346
Status: No Status
Rep Power: 2 Rep.: 1053
killingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to all
Re: Private Message Dump to HTML

Quote:
Originally Posted by LMC
You guys DEFINITELY have too much time on your hands ( )
Well I ran out of PM space so I exported and deleted them. I just figured I'd have a way to read them after that .
killingtime is offline   Reply With Quote
Old 11th-October-2005, 04:15 PM   #11 (permalink)
Ceroc N.I. Franchise Owner
 
drathzel's Avatar
 
Join Date: Aug 2004
Location: Bangor, Northern Ireland
Posts: 7,787
Status: is at kirriemuir!!!
Rep Power: 5 Rep.: 1325
drathzel is a name known to alldrathzel is a name known to alldrathzel is a name known to alldrathzel is a name known to alldrathzel is a name known to alldrathzel is a name known to alldrathzel is a name known to alldrathzel is a name known to alldrathzel is a name known to alldrathzel is a name known to all
Re: Private Message Dump to HTML

Quote:
Originally Posted by Aleks
Wooooosh!
Hope it works for all of you that understood that.


Quote:
Originally Posted by ducasi
Sometime I'll write a perl script to turn the text output into mbox format files...

(Expecting to hear another whoosh any moment now...)
double
__________________
"A person's a person no matter how small" Horton hears a Who
drathzel is online now   Reply With Quote
Old 11th-October-2005, 04:18 PM   #12 (permalink)
Registered User
 
killingtime's Avatar
 
Join Date: Jul 2005
Location: Edmonton, AB
Posts: 2,346
Status: No Status
Rep Power: 2 Rep.: 1053
killingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to allkillingtime is a name known to all
Re: Private Message Dump to HTML

Quote:
Originally Posted by drathzel
Quote:
Originally Posted by ducasi
ducasi
Sometime I'll write a perl script to turn the text output into mbox format files...

(Expecting to hear another whoosh any moment now...)
double
It basically means you can read the messages using an email client. I like where he is coming from.
killingtime is offline   Reply With Quote
Old 11th-October-2005, 06:57 PM   #13 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Midlands
Posts: 2,174
Status: No Status
Rep Power: 3 Rep.: 740
DavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of light
Re: Private Message Dump to HTML

Quote:
Originally Posted by LMC
You guys DEFINITELY have too much time on your hands ( )
It didn't take too much time to use Access. The Access import wizard was nearly right 1st time - just needed to tweak the fields a bit (to set up memo fields if I remember rightly) then import again. Then use another wizard to set up an Access automatic form and I can see all my messages (& it's also dead easy to search them or show them in a different order).

Like killingtime I had to delete some PMs due to full mailbox - unless you want to lose them altogether it seems reasonable for us to work out our various ways to view them...
__________________
Love dance, will travel
DavidY is online now   Reply With Quote
Old 11th-October-2005, 08:54 PM   #14 (permalink)
LMC
Registered User
 
LMC's Avatar
 
Join Date: Jun 2005
Location: In the corner
Posts: 4,508
Status: No Status
Rep Power: 4 Rep.: 2319
LMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud ofLMC has much to be proud of
Re: Private Message Dump to HTML

Quote:
Originally Posted by DavidY
Like killingtime I had to delete some PMs due to full mailbox - unless you want to lose them altogether it seems reasonable for us to work out our various ways to view them...
I'm not as clever as you guys - I paid fifteen quid instead...

EDIT: just realised that you're paid up DavidY - 4000 messages and you still ran out of space
LMC is offline   Reply With Quote
Old 11th-October-2005, 10:14 PM   #15 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: Midlands
Posts: 2,174
Status: No Status
Rep Power: 3 Rep.: 740
DavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of lightDavidY is a glorious beacon of light
Re: Private Message Dump to HTML

Quote:
Originally Posted by LMC
I'm not as clever as you guys - I paid fifteen quid instead...

EDIT: just realised that you're paid up DavidY - 4000 messages and you still ran out of space
I'm paid up now - but I let my membership lapse a while ago though so I ran out of space and had to do some hasty deletion so I could still receive messages. (But even now I'm paid up, I only have space for 2,000 )
__________________
Love dance, will travel
DavidY is online now   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks

Tags
dump, html, message, private

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Incorrectly unconfirmed private message receipts ducasi Forum technical problems / Questions / Suggestions.. 4 18th-May-2005 12:31 PM
Putting an image in a private message Northants Girly Forum technical problems / Questions / Suggestions.. 1 20th-October-2004 02:26 PM
testing HTML Gadget test messages 6 8th-August-2004 03:43 PM
Dump Internet Explorer Dreadful Scathe Chit Chat 7 25th-June-2004 11:34 AM
message displays Chris test messages 3 11th-September-2003 07:32 PM


The time in sunny Scotland is 10:17 AM.

These are the 100 most used thread tags
Tag Cloud
2005 2006 2007 2008 aberdeen advice aftermath april ashtons august baby back ball ballroom beach beginners big blackpool blaze blues camber car ceroc champs change christmas class competition dance dancer dancers dancing day dec dvd edinburgh feb free freestyle friday game glasgow hammersmith jan jive july june lead life lift london make male man march men modern move music needed night partner people photos question rep room sat saturday scotland scottish shoes song southport strictly sunday swing tango teachers test thread ticket time tips tonight tracks utopia venue video wanted wcs week weekend weekender weekenders west women work workshop world

Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18