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

Re: Q - Parsing & Manipulating Strings from XSL

Subject: Re: Q - Parsing & Manipulating Strings from XSL
From: Ahsan Ali <doubleletter@xxxxxxxxx>
Date: Mon, 30 May 2005 17:53:12 +0400
minutes from duration
Michael,


Is there way to do this in pure XSLT instead of Xquery ?? Or a way to
embed this xquery statement into an xsl file ?


> You've got a choice between using numeric arithmetic or duration
arithmetic.
> It's probably cleanest to use duration arithmetic though it's a bit
verbose.
>
> declare variable $one-minute := xdt:dayTimeDuration('PT1M')
>
> then
>
> let $time := xs:integer(JrnyTm) * $one-minute,
>     $hours := hours-from-duration($time),
>     $minutes := minutes-from-duration($time)
> return
>     concat($hours, ' hrs ', $minutes, ' minutes ')
>

Regards, Ahsan

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.