xsl-list
[Top] [All Lists]

[xsl] Listing keywords

2006-06-12 03:11:19
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.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>