I am new to xsl xml transformation. For now, I have an xml file that contains the following information:
<bio>
<published>Tue, 7 Oct 2008 14:47:26 +0000</published>
<summary><![CDATA[
Dream Theater is an American <a
href="http://www.last.fm/tag/progressive%20metal" class="bbcode_tag"
rel="tag">progressive metal</a> band formed in 1985 under the name
"<a href="http://www.last.fm/music/Majesty"
class="bbcode_artist">Majesty</a>" by <a
href="http://www.last.fm/music/John+Myung"
class="bbcode_artist">John Myung</a>,
<a href="http://www.last.fm/music/John+Petrucci"
class="bbcode_artist">John Petrucci</a>
]]>
</summary>
</bio>
And my xsl file contains this:
<h3><xsl:value-of select="lfm/artist/bio/published"/></h3>
<p>
<xsl:value-of select="lfm/artist/bio/summary" disable-output-escaping="yes"/>
</p>
<html>
<body>
<xsl:value-of select="lfm/artist/bio/content"/>
</body>
</html>
What I'm trying to do now is to extract the tag-structured data out of the <summary><[CDATA[]]></summary> and show it in the browser as in this example:
<a href="http://www.last.fm/tag/progressive%20metal" class="bbcode_tag" rel="tag">progressive metal</a>
<a href="http://www.last.fm/music/Majesty" class="bbcode_artist">Majesty</a>
<a href="http://www.last.fm/music/John+Myung" class="bbcode_artist">John Myung</a>
<a href="http://www.last.fm/music/John+Petrucci" class="bbcode_artist">John Petrucci</a>
For now when I open the xml page, it shows all the CDATA content, even with those html tags... I want to get those tags to do their job properly in html form.
sorry for the terrible description..hope you guys can get what i mean here...
xmlas there is already an answer referring to it. You could have simplified it so much just shortening urls, and removing irrelevant info! - Alberto