I would like someone to create an XSLT style sheet that transforms my data in csv-xls-xml format into Carrot format , as shown below in the example on this page here([login to view URL]).
The extract is given below
Clustering documents from XML feeds
To try Carrot2 clustering on documents or search results fetched from a remote XML feed, you can use the Carrot2 Document Clustering Workbench. As an example, we will cluster a news feed from BBC:
In the Search view of Carrot2 Document Clustering Workbench, choose XML source.
Set URL to your XML feed in the XML Resource field. Optionally, the URL can contain two special place holders that will be replaced with the Query and Results number you set in the search view.
In our example, we will use the BBC News RSS feed.
Create an XSLT style sheet that will transform the XML feed into Carrot2 format. For the news feed we can use the stylesheet shown in Figure 4.2. To add more colour to our results, the XSLT transform extracts thumbnail URLs from the feed and passes them to Carrot2 in a special attribute. Attributes that are a sequence of values can be embedded as shown in Figure 4.3.
Provide a path to the transformation style sheet in the XSLT Stylesheet field in the Medium section.
Press the Process button to see the results.
Figure 4.2
News feed XML to Carrot2 format transformation
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="[login to view URL]"
xmlns:media="[login to view URL]">
<xsl:output indent="yes" omit-xml-declaration="no"
media-type="application/xml" encoding="UTF-8" />
<xsl:template match="/">
<searchresult>
<xsl:apply-templates select="/rss/channel/item" />
</searchresult>
</xsl:template>
<xsl:template match="item">
<document>
<title><xsl:value-of select="title" /></title>
<snippet>
<xsl:value-of select="description" />
</snippet>
<url><xsl:value-of select="link" /></url>
<xsl:if test="media:thumbnail">
<field key="thumbnail-url">
<value type="[login to view URL]"
value="{media:thumbnail/@url}"/>
</field>
</xsl:if>
</document>
</xsl:template>
</xsl:stylesheet>
Figure 4.3
Document attribute that contains a list of values.
<field key="key">
<value><wrapper class="[login to view URL]">
<list>
<value value="value1"/>
<value value="value2"/>
</list>
</wrapper></value>
</field>