Unfortunately all the examples I had in the tutorials had much simpler data formats where I could easily loop through the data.
I've just installed the demo of stylus studio (which seems brilliant) but even with this powerful tool I cannot see a way to format the data in the way that I want.
All help greatfully received.
Regards,
Rob
weather.xml xml file generated by the NOAA webserv
Subject:group items for output in a table (xsl) Author:(Deleted User) Date:20 Mar 2007 10:56 AM
Hi Robert,
I came up with this solution: it's kind of hardcoded in the sense that always has two columns (instead of displaying one per <temperature> node), but at least shows you how you can correlate the <value> nodes belonging to different parents.
Subject:group items for output in a table (xsl) Author:robert wakeford Date:20 Mar 2007 11:10 AM
Many thanks Alberto.
I've had a brief look at you solution and I've already spotted quite a few pointers. I'll have a more indepth look this evening. Many thanks for coming back to me.
Subject:Re: group items for output in a table (xsl) Author:(Deleted User) Date:22 Mar 2007 04:35 AM
Hi Robert,
no, it's not a typo: xsl is needed to express the XSLT instructions,
and xsi is needed to reference the xsi:nil attribute in the XPath expressions.
Subject:Re: group items for output in a table (xsl) Author:robert wakeford Date:22 Mar 2007 05:10 AM
Many thanks I'll continue with my studies!
I'm determined to get a handle on this because xsl appears to be so much cleaner to use than writing endless lines of Javascript or php code. Its also would appear that it will be much quicker to develop applications than using the other methodolgies.
Subject:Re: group items for output in a table (xsl) Author:robert wakeford Date:27 Mar 2007 04:40 AM
SUCCESS!
Thank you very, very much Alberto!
I will now try and complete this exercise in XSL.
I will post back here when its completed (assuming I don't encounter any further problems :)) so that you can see the final results, so please keep monitoring the thread.