Grab a element and use it for header (grouping), rss problem... Options
Anders
Posted: Thursday, January 24, 2008 11:23:07 AM

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
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.