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

producing month list in xslt 2.0

Subject: producing month list in xslt 2.0
From: "David Murphy" <david@xxxxxxxxxxxxxx>
Date: Fri, 28 Jul 2006 16:53:30 +0100
month list
Hello

I'd like to be able to display the next 12 months for use in a calendar
application.

What I have so far:

<xsl:param name="thisMonth"  select="xs:date(format-date(xs:date($m),
'[Y]-[M01]-01'))"/>

<xsl:param name="lastMonth"  select="$thisMonth -
xdt:yearMonthDuration('P1M')"/>

<xsl:param name="nextMonth"  select="$thisMonth +
xdt:yearMonthDuration('P1M')"/>

Is there a way to loop through the next or previous 12 months (wrt the
current focus month, $thisMonth) using the built-in date time functions,
or am I required to call a counter template to loop from 1 to 12?

Thanks for any guidance, David

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.