string function : Tamino 4.1.4.1 - > 4.2

I’ve a DB with data like that:

<data>
<startdate>2004-12-14</startdate>
<enddate>2004-12-26</enddate>
<partner>toto</partner>
</data>
</pre><BR><BR>start & end dates are in date format (not string).<BR><BR>With Tamino 4.1.4.1 my query return is <BR><BR><pre class="ip-ubbcode-code-pre">
return 
<data>
<start>{string($data/startdate)}</start>
<end>{string($data/enddate)}</end>
</data>
</pre><BR><BR>no problem. with Tamino 4.2 the query return this :<BR><pre class="ip-ubbcode-code-pre"> 
<ino:message ino:returnvalue="6366">

  <ino:messagetext ino:code="INOXQE6366">Type exception: invalid input for function</ino:messagetext> 

<ino:messageline>Function: string; line 3, column 109: <![CDATA[string($data/startdate]]></ino:messageline> 
</ino:message> 


if I remove the string function, it’s working, but I need it for better formated return

Hi,

I sucessfuly tried
declare namespace xs = "http://www.w3.org/2001/XMLSchema"
string({xs:date(“2004-12-14”)})
with my Tamino 4.2.
Either my 4.2 is not the same as yours (unlikely) or your
schema & data contain some interesting bit that irritates
our typing mechanism. Please send those to me or tell me
where I can find them and I’ll have a look.

Thanks & regards,
Juliane.