I just exported my whole LiveJournal-Blog with an exporting application to an XML file. Reason for this is to archive it all and preserve for future generations. I want to make a simple layout file for it, so I can read the posts and go all nostalgic. It looks like any regular XML file:
<livejournal>
<entry>
<itemid>1</itemid>
<eventtime>Date/time</eventtime>
<subject>Subject Line</subject>
<event>The actual post</event>
<allowmask>0</allowmask>
<current_mood>current mood</current_mood>
<current_music>current mood</current_music>
<taglist>comma, separated, tags</taglist>
<comment>
<itemid>2433</itemid>
<eventtime>Date</eventtime>
<subject>Subject Line</subject>
<event>The actual comment</event>
<author>
<name>Commenter</name>
<email>Commenter@email</email>
</author>
</comment>
</entry>
<entry>
</livejournal>
So far everything is nice and good. The problem occurs when I try to make an xsl file for it. The <event> tag in the xml file contains not only text, but also HTML. And to boot, HTML written in 2004 and generated by all sorts of meme generators. So the code doesn't evaluate worth much. We see lovely tags as <table border=1 width=300> and tons of unclosed img, input, br and hr tags.
The current export have replaced all <> with <> so it evaluates as an xml file. What I want to do is to be able to view the XML file with all the intended HTML tags. So <b></b> makes things bold. But I have no idea how to do so since <b></b> doesn't evaluate properly.
<event>I ate a <b>tasty</b> cucumber</event>
outputs
I ate a <b>tasty</b> cucumber
rather than
I ate a tasty cucumber
Is there a way to get around this? Since changing all the lt, gt in the xml file to <> makes it not evaluate due to the bad HTML. And I don't feel like going through 700+ posts to make stuff evaluate properly by hand.