Hi Dorin,
I am stuck here. If you can promptly reply me, it would be really helpful to me.
Thanks,
Ismail
User Profile
Collapse
-
Yes, this is Java Code that uses Saxon Java API to execute XQuery. But I want to execute to XQuery on my XML Document, which I can't acheive using this API. Hope you can help me.
Thanks,
IsmailLeave a comment:
-
Attaching XML File to XQuery using Saxon
Hi,
I'm using Saxon v8.9 for XQuery execution. I'm using following code:
XQDataSource ds = new SaxonXQDataSour ce();
XQConnection conn = ds.getConnectio n();
XQExpression exp = conn.createExpr ession();
XQResultSequenc e seq = exp.executeQuer y(queryExpressi on);
But, I can't attach XML Document to it. I want to know whether an XML Document... -
Thanks a lot. It works for me now. for loop within max has worked fine for me.
Thanks once again
IsmailLeave a comment:
-
No effect. Same exception. I think I'm unable to understand you the problem. Now I'm re-trying. Basically, it gives exception on the argument of max which is date & time in string format (i.e., 2007-03-30T13:55:15), but max function accepts in double format. And if it is not double (which is in my case), then it tries to convert it into double, which is also not possible (in my case) b/c special characters can't be converted into double. ...Leave a comment:
-
Thanks for quick response.
I've tried. But its giving another error:
Required type of value of variable $maxTime [unallocated] is xs:string; supplied value has type xs:double
Reason is that max function requires double as argument, and when it get String, it tries to convert it into double, but due to presence of special characters in the string, it can't.. I think there should be some method which should...Leave a comment:
-
max() function problem in XQuery using Saxon
Hi,
I'm using Weblogic 9.2 which uses Saxon 8.1.1 as its XQuery Engine. I'm using max function and in the argument I'm passing the node which has two dateTime values. It is giving exception.
Following is part of my XML Document:
<effectiveTim e value="2007-03-20T18:10:15"/>
Following is part of my XQuery:
$maxTime := (max($bodySect[code/@code='11502-2']/entry/observation/effectiveTime/@value))...
No activity results to display
Show More
Leave a comment: