[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Finding and comparing a parent attribute for the n

Subject: Re: Finding and comparing a parent attribute for the next result in a for-each loop
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 07 Aug 2008 18:37:06 +0200
Re:  Finding and comparing a parent attribute for the n
Kate Busch Petersen wrote:

I'm fairly new to XSLT and am having no end of difficulty sorting the data from the following XML:

<resource day="04" live="200707040000" month="07" monthname="July" year="2007">
<title>Title 1</title>
<section name="Articles">
<subsection>section 1</subsection>
</section>
</resource>
<resource day="10" live="200701100000" month="01" monthname="January" year="2007">
<title>Competition: Commission energy sector inquiry confirms serious competition problems </title>
<section name="News releases">
<subsection>section 1</subsection>
</section>
<section name="Articles">
<subsection>section 1</subsection>
</section>
</resource>


and so on, for as many resources as there are.

I have managed to sort the data by section and correspondingly by subsection, but now I am having problems drilling down through the navigation, to display all the years for each section (and subsection).

Ideally it should produce a list of all years, so the user can browse the resources by year. All | 2008 | 2007 | 2006 etc

Can you post the HTML you want to create from that fragment above?


--

	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.