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

Re: Summing Time Durations Help

Subject: Re: Summing Time Durations Help
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 05 Oct 2005 09:41:22 +0100
summing time
>>>>> "Michael" == Michael Kay <mike@xxxxxxxxxxxx> writes:

    Michael> Colin, you're right, on the assumption that there's no
    Michael> schema and that the transformation isn't schema-aware.

I meant to add that bit (leaving you to say what follows, since I
wasn't quite sure of the syntax, never having used schema-aware), but
by the time I'd added all the rest of the message, I forgot.

    Michael> there's a schema that describes these elements as being
    Michael> of type xdt:dayTimeDuration, and if you use a
    Michael> schema-aware processor, then you can just sum them
    Michael> directly: sum(tduration).

Incidentally, I assume to get the example I posted to work with saxon,
changing 2005 to 2004/04 in the namespace will do the trick?

-- 
Colin Adams
Preston Lancashire

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.