xsl-list
[Top] [All Lists]

[xsl] retrieve elements with same attribute values

2007-05-07 19:27:02
Hello friends,
I'm trying to retrieve all element that have the same values for specific attributes more (or equal) than 3 times (for example).
See example below that explains what I'm trying to achieve.
Any help would be appreciated.
Thanx

I trying to get the output like

70 : Queen : we are the champions
70 : Queen : Bohemian Rhapsody
70 : Queen : radio gaga
reggae : Bob Marley : No woman no cry
reggae : Bob Marley : one love
reggae : Bob Marley : Jammin

From this xml

<catalogue>
  <category name="70's">
     <item name="we are the champions">
        <author>Queen</author>
     </item>
     <item name="Roxane">
        <author>Police</author>
     </item>
     <item name="Bohemian Rhapsody">
        <author>Queen</author>
     </item>
     <item name="radio gaga">
        <author>Queen</author>
     </item>
  </category>

  <category name="reggae">
     <item name="red red wine">
        <author>UB40</author>
     </item>
     <item name="kingston town">
        <author>UB40</author>
     </item>
     <item name="No woman no cry">
        <author>Bob Marley</author>
     </item>
     <item name="one love">
        <author>Bob Marley</author>
     </item>
     <item name="Jammin">
        <author>Bob Marley</author>
     </item>
  </category>
</catalogue>

--~------------------------------------------------------------------
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>