|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Grouping Issue?
I am trying to get the following XML to be presented in rows of 3
months. The months are represented as headings with the dates listed
underneath.
I'm pretty sure it's a grouping issue but I can't get my head around how this works. Basically every 3 months I want to start a new row. <tripdates>
<month name="October">
<date>Wednesday 9th</date>
<date>Thursday 10th</date>
</month>
<month name="November">
<date>Saturday 2nd</date>
<date>Sunday 3rd</date>
</month>
<month name="December">
<date>Sunday 22nd</date>
</month>
<month name="January">
<date>Sunday 22nd</date>
</month>
</tripdates>This is the XSL I've got to lay the months out but at the moment it's simply just putting them into one row. <xsl:template match="tripdates"> <div class="tourrow"> <xsl:for-each select="month"> <div class="monthpos"> <h3><xsl:value-of select="@name"/></h3> <xsl:for-each select="date"> <div class="tourdate"><xsl:value-of select="."/></div> </xsl:for-each> </div> </xsl:for-each> </div> </xsl:template> Any ideas on this? Thanks Josh XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








