W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

Re: XSLT 2.0: Writing untyped stylesheets - how much is possible?

From: David Carlisle <davidc@nag.co.uk>
Date: Wed, 7 May 2003 15:25:31 +0100
Message-Id: <200305071425.PAA01343@penguin.nag.co.uk>
To: Svgdeveloper@aol.com
CC: public-qt-comments@w3.org

> Am I correct in assuming, for example, that a type-unaware stylesheet author 
> cannot use the date and time functions?

Note this is not a response from the WG, but I believe that assumption is
incorrect (I hope it is incorrect;-)

> I assume that when one of these 
> functions meets a string which happens to be the lexical expression of a date 
> that it will be typed as xdt:untypedAtomic and


> and the processor will reject the argument to the function since it is
> not of the specified type for that  
> function's argument. 

No, Xpath 3.1.4 Function Calls

2. Each item in the atomic sequence that is of type xdt:untypedAtomic is
   cast to the expected atomic type.

So I think this means that If you use a date function on a string
extracted from an untyped input doc, it will be coerced to a date type
before calling the function.


This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
Received on Wednesday, 7 May 2003 10:25:59 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:12 UTC