[xsl] Listing keywords

Subject: [xsl] Listing keywords
From: Phillip B Oldham <phillip.oldham@xxxxxxxxxx>
Date: Mon, 12 Jun 2006 11:11:01 +0100
Hi all

I'm trying to get my head around the following problem... I've got a doc with the following structure:

<item>
   <keywords>Chair, Sofa, Cabinet</keywords>
</item>
<item>
   <keywords>Chair, Sofa</keywords>
</item>
<item>
   <keywords>Cabinet</keywords>
</item>
<item>
   <keywords>Chair</keywords>
</item>

What I need to get out of that is a list of unique keywords, eg:

<keyword>Cabinet</keyword>
<keyword>Chair</keyword>
<keyword>Sofa</keyword>

Anyone know how I can do this? I'm using XSL/XPath 1.0.

Current Thread