 Rank: Devotee
Joined: 5/24/2007 Posts: 72 Location: Kalix, Sweden
|
I have an XML rss feed that looks like this:
<item> <title>title</title> <link>link</link> <description>description</description> <guid isPermaLink="false">guid</guid> <pubDate>Tue, 22 Jan 2008 18:34:28 PST</pubDate> <category>category1</rx:Category> </item>
<item> <title>title2</title> <link>link2</link> <description>description2</description> <guid isPermaLink="false">guid2</guid> <pubDate>Tue, 22 Jan 2008 18:34:28 PST</pubDate> <category>category1</rx:Category> </item>
<item> <title>title3</title> <link>link3</link> <description>description3</description> <guid isPermaLink="false">guid3</guid> <pubDate>Tue, 22 Jan 2008 18:34:28 PST</pubDate> <category>category2</rx:Category> </item>
and so on. Now I have sorted the xml by category, this works great. However now I want to grab the category and use it for a header for all items that belongs to that category, how would I do this with xslt? I mean when there are several items i dont want to "print" the header more than once, and before each first item....
Umbraco Certified Professional
|