I have created an XSLT stylesheet for applying to vBulletin Private Message archive files in XML format. This stylesheet will present the XML archive as readable XHTML/HTML with expandable and contractable folders/messages.
The XSLT file is available in two versions. One is a XHTML 1.1 version for standards compliant browsers, the other is an Internet Explorer-specific version.
I have tested the appropriate versions in Firefox and IE. Opera does not (yet, version 9 should) support XSLT. Safari does, but I am unable to test in it (if anyone has Safari could you please tell me?) Other Gecko based browsers (Flock, Camino, etc.) should work as Firefox does.
Standards compliant version features embedded expand/contract images (through data URIs) and a fixed position quick links bar at the top right hand corner of the screen.
Fixed positioning is possible in IE through some trickery but I did not feel it was worth it so that is omitted from the IE version. Data URI images in that version are replaced with text (does not look quite as good but no functional difference).
- Download and extract the attached ZIP file;
- Save the appropriate version XSL file to the same directory where your XML Private Message archives are stored (for non-IE users: vb-private-messages-std.xsl, for IE users: vb-private-messages-ie.xsl);
- Open each XML file, underneath the XML prolog (this line:
<?xml version="1.0" encoding="ISO-8859-1"?>) insert one of these two lines to link it to the stylesheet:
- Open the XML file in your browser. You should see a formatted usable version of the Private Message archive file.
I hope this assists forum users who download their PM archives in XML format and have been finding them difficult to make use of.
Note: There is one drawback and that is that vB codes are not parsed but rather simply shown as they appear in the message text. There is no way to convert vB codes into (X)HTML using an XSL transformation alone.