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

> 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

yes

> 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
has

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.

David



________________________________________________________________________
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:
http://www.star.net.uk
________________________________________________________________________

Received on Wednesday, 7 May 2003 10:25:59 UTC