Help with date:difference

"Ali Khan" <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Hi,

I have successfully used the date:difference but there is some problem with 
the output. The output is shown in xs:duration format. I need to convert the 
duration into the number of months. I am using gYearMonth as my date format. 
i.e. 2004-09.

For example if the duration is P7Y8M i.e. 7 Years and 8 Months. I need a 
function which can automatically give me the result as 7x12 + 8 = 92 Months. 
OR I am looking to transform this date to more readable output not the 
xs:duration output.

I looked into format-date template but it does not accept the xs:duration 
format.

Thanks for your help. Appreciate it.

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® 
Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.