<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
If you're talking about BEA LD 1.1, I asked the same question and was
told<font face="Verdana, Geneva, Arial, Helvetica" size="2"> "LD 1.1
does not support User Defined Functions. This feature was omitted for
performance reasons."</font>
<br>
<br>
BEA 8.1 which just came out yesterday only supports<br>
<br>
XQuery
<blockquote>
<pre><code style="font-family: courier; font-size: 10pt;"><a
href="http://www.w3.org/TR/2001/WD-xquery-20011220">http://www.w3.org/TR/2001/WD-xquery-20011220</a></code></pre>
</blockquote>
<p class="head3">XQuery Functions and Operators</p>
<blockquote>
<pre><code style="font-family: courier; font-size: 10pt;"><a
href="http://www.w3.org/TR/2002/WD-xquery-operators-20020430">http://www.w3.org/TR/2002/WD-xquery-operators-20020430</a></code></pre>
</blockquote>
<br>
<br>
In looking at the LD 8.1 release notes and other docs, I don't see
where they've added support for them yet.<br>
<br>
Jason Hunter wrote:<br>
<blockquote type="cite" cite="mid3F29E4A9.3060907@servlets.com">Are you
sure the BEA implementation supports the May draft? The "as" syntax
like you're using is from May. You can see if the round-half-to-even()
or trace() functions are implemented. Those being implemented would
indicate it's May.
<br>
<br>
-jh-
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Dmitri.Colebatch@toyota.com.au">Dmitri.Colebatch@toyota.com.au</a> wrote:
<br>
<br>
<blockquote type="cite">hey all,
<br>
<br>
another question.... hopefully not quite as trivial as the last.
<br>
<br>
I'm trying to define my own function, and have the following in my
header,
<br>
however I am getting parse exceptions from the bea weblogic
implementation.
<br>
Can someone tell me if this is a problem with my code or their
<br>
implementation...
<br>
<br>
define function convertSAPDateTime($dateNode as node(), $timeNode as
<br>
node())
<br>
as xs:dateTime
<br>
{
<br>
let $dateStr := data($dateNode)
<br>
let $yyyy := xf:substring($dateStr, 1, 4)
<br>
let $mm := xf:substring($dateStr, 5, 2)
<br>
let $dd := xf:substring($dateStr,7, 2)
<br>
<br>
let $timeStr := data($timeNode)
<br>
let $HH := xf:substring($timeStr, 1, 2)
<br>
let $mi := xf:substring($timeStr, 3, 2)
<br>
let $ss := xf:substring($timeStr, 5, 2)
<br>
<br>
return xf:dateTime(xf:concat($yyyy, '-', $mm, '-', $dd, 'T', $HH,
<br>
':', $mi, ':', $ss))
<br>
}
<br>
<br>
the code inside the braces works fine when not defined as part of a
<br>
function, but I am getting parse exceptions on the "as" in "$dateNode
as
<br>
node()". If I remove the "as node()" then it works fine, however I
then
<br>
have the wrong type for the data function... I assume could cast it,
but as
<br>
I understand it the above should work...
<br>
<br>
fwiw I'm using <a class="moz-txt-link-freetext" href="http://www.w3.org/TR/xquery/#FunctionDefns">http://www.w3.org/TR/xquery/#FunctionDefns</a> as my
reference.
<br>
<br>
thanks again for your help.
<br>
<br>
cheers
<br>
dim
<br>
<br>
<br>
<br>
<br>
<br>
<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<br>
DISCLAIMER
<br>
* This email and any attachment may contain confidential information.
<br>
If you are not the intended recipient you are not authorised to copy
<br>
or disclose all or any part of it without the prior written consent
<br>
of Toyota.
<br>
* Opinions expressed in this email and any attachment are those of the
<br>
sender and not necessarily the opinions of Toyota.
<br>
* Please scan this email and any attachment for viruses. Toyota does
<br>
not accept any responsibility for problems caused by viruses, whether
<br>
it is Toyota's fault or not.
<br>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
<br>
<br>
<br>
_______________________________________________
<br>
<a class="moz-txt-link-abbreviated" href="mailto:talk@x-query.com">talk@x-query.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://www.x-query.com/mailman/listinfo/talk">http://www.x-query.com/mailman/listinfo/talk</a>
<br>
<br>
</blockquote>
<br>
_______________________________________________
<br>
<a class="moz-txt-link-abbreviated" href="mailto:talk@x-query.com">talk@x-query.com</a>
<br>
<a class="moz-txt-link-freetext" href="http://www.x-query.com/mailman/listinfo/talk">http://www.x-query.com/mailman/listinfo/talk</a>
<br>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Mark Maxey
(972)205-5760
<a class="moz-txt-link-abbreviated" href="mailto:Mark_R_Maxey@Raytheon.com">Mark_R_Maxey@Raytheon.com</a></pre>
</body>
</html>