XML to HTML

This example shows how to read XML and format it as XHTML. The XML source is RSS in this example.

Start URL:

http://javablogs.com/ViewDaysBlogs.action?view=rss

Source type:

XML

Link rewriting scope:

Transformation of content (XSLT):

<?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:proxy="java:senselogic.sitevision.portlet.proxy.web. ProxyFunctions" extension-element-prefixes="proxy">

<xsl:template match="/">
<ul>
<xsl:for-each select="/rss/channel/item">
<li>
<a href="{link}"><xsl:value-of select="title"/></a>
</li>
</xsl:for-each>
</ul>
</xsl:template>

</xsl:stylesheet>