|
From: <et...@us...> - 2011-06-14 01:51:53
|
Revision: 4401
http://mxquery.svn.sourceforge.net/mxquery/?rev=4401&view=rev
Author: etterth
Date: 2011-06-14 01:51:42 +0000 (Tue, 14 Jun 2011)
Log Message:
-----------
- Added js-call(functionname,arg0,arg1,...) with up to 6 arguments
Modified Paths:
--------------
trunk/MXQuery/xqib_src/ch/ethz/mxquery/functions/FG.xml
trunk/MXQuery/xqib_src/ch/ethz/mxquery/functions/FGPopulator.java
trunk/MXQuery/xqib_src/ch/ethz/mxquery/util/browser/MxQueryToJs.java
trunk/MXQuery/xqib_src/functiongallerytojava.xsl
Added Paths:
-----------
trunk/MXQuery/xqib_samples/js-call1.html
trunk/MXQuery/xqib_src/ch/ethz/mxquery/functions/b/JsCall.java
Added: trunk/MXQuery/xqib_samples/js-call1.html
===================================================================
--- trunk/MXQuery/xqib_samples/js-call1.html (rev 0)
+++ trunk/MXQuery/xqib_samples/js-call1.html 2011-06-14 01:51:42 UTC (rev 4401)
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>XQIB: Sample page</title>
+ <meta charset="UTF-8"/>
+ <script type="text/javascript" src="mxqueryjs/mxqueryjs.nocache.js"></script>
+<script type="text/javascript">
+ foo = function (arg1){ return 'the text was ' + arg1;};
+</script>
+ <script type="application/xquery">
+ let $x := b:js-call('window.foo', string(b:dom()/id('a')/text()))
+ return
+ replace value of node b:dom()/id('a') with $x
+ </script>
+ </head>
+ <body>
+ <h1 id='a'>Some text.</h1>
+ </body>
+</html>
Modified: trunk/MXQuery/xqib_src/ch/ethz/mxquery/functions/FG.xml
===================================================================
--- trunk/MXQuery/xqib_src/ch/ethz/mxquery/functions/FG.xml 2011-06-13 18:57:15 UTC (rev 4400)
+++ trunk/MXQuery/xqib_src/ch/ethz/mxquery/functions/FG.xml 2011-06-14 01:51:42 UTC (rev 4401)
@@ -1,7 +1,65 @@
<?xml version='1.0' encoding='UTF-8' ?>
<functionGallery basePackage="ch.ethz.mxquery.functions.">
<functionGroup prefix="b" namespace="http://xqib.org">
+<!-- js-call -->
+ <functionDescription>
+ <functionName>js-call</functionName>
+ <parameters>
+ <paramType>xs:string</paramType>
+ </parameters>
+ <className>JsCall</className>
+ </functionDescription>
<functionDescription>
+ <functionName>js-call</functionName>
+ <parameters>
+ <paramType>xs:string</paramType>
+ <paramType>item()*</paramType>
+ </parameters>
+ <className>JsCall</className>
+ </functionDescription>
+ <functionDescription>
+ <functionName>js-call</functionName>
+ <parameters>
+ <paramType>xs:string</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ </parameters>
+ <className>JsCall</className>
+ </functionDescription>
+ <functionDescription>
+ <functionName>js-call</functionName>
+ <parameters>
+ <paramType>xs:string</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ </parameters>
+ <className>JsCall</className>
+ </functionDescription>
+ <functionDescription>
+ <functionName>js-call</functionName>
+ <parameters>
+ <paramType>xs:string</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ </parameters>
+ <className>JsCall</className>
+ </functionDescription> <functionDescription>
+ <functionName>js-call</functionName>
+ <parameters>
+ <paramType>xs:string</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ <paramType>item()*</paramType>
+ </parameters>
+ <className>JsCall</className>
+ </functionDescription>
+<!-- js-call -->
+ <functionDescription>
<functionName>js-eval</functionName>
<parameters>
<paramType>xs:string</paramType>
Modified: trunk/MXQuery/xqib_src/ch/ethz/mxquery/functions/FGPopulator.java
===================================================================
--- trunk/MXQuery/xqib_src/ch/ethz/mxquery/functions/FGPopulator.java 2011-06-13 18:57:15 UTC (rev 4400)
+++ trunk/MXQuery/xqib_src/ch/ethz/mxquery/functions/FGPopulator.java 2011-06-14 01:51:42 UTC (rev 4401)
@@ -37,6 +37,7 @@
ctx.addNamespace(XQStaticContext.NS_BROWSER,
XQStaticContext.URI_BROWSER);
TypeInfo xs_string = new TypeInfo(FunctionGallery.getType("xs:string",ctx), Type.OCCURRENCE_IND_EXACTLY_ONE,null);
+ TypeInfo item___star = new TypeInfo(FunctionGallery.getType("item()*",ctx), Type.OCCURRENCE_IND_ZERO_OR_MORE,null);
TypeInfo xs_integer = new TypeInfo(FunctionGallery.getType("xs:integer",ctx), Type.OCCURRENCE_IND_EXACTLY_ONE,null);
TypeInfo function__ = new TypeInfo(FunctionGallery.getType("function()",ctx), Type.OCCURRENCE_IND_EXACTLY_ONE,null);
TypeInfo xs_dateTime = new TypeInfo(FunctionGallery.getType("xs:dateTime",ctx), Type.OCCURRENCE_IND_EXACTLY_ONE,null);
@@ -52,7 +53,6 @@
TypeInfo xs_time_quest = new TypeInfo(FunctionGallery.getType("xs:time?",ctx), Type.OCCURRENCE_IND_ZERO_OR_ONE,null);
TypeInfo xs_time = new TypeInfo(FunctionGallery.getType("xs:time",ctx), Type.OCCURRENCE_IND_EXACTLY_ONE,null);
TypeInfo xs_anyAtomicType_star = new TypeInfo(FunctionGallery.getType("xs:anyAtomicType*",ctx), Type.OCCURRENCE_IND_ZERO_OR_MORE,null);
- TypeInfo item___star = new TypeInfo(FunctionGallery.getType("item()*",ctx), Type.OCCURRENCE_IND_ZERO_OR_MORE,null);
TypeInfo xs_integer_star = new TypeInfo(FunctionGallery.getType("xs:integer*",ctx), Type.OCCURRENCE_IND_ZERO_OR_MORE,null);
TypeInfo xs_anyAtomicType_quest = new TypeInfo(FunctionGallery.getType("xs:anyAtomicType?",ctx), Type.OCCURRENCE_IND_ZERO_OR_ONE,null);
TypeInfo xs_duration_quest = new TypeInfo(FunctionGallery.getType("xs:duration?",ctx), Type.OCCURRENCE_IND_ZERO_OR_ONE,null);
@@ -102,50 +102,186 @@
qn = new QName(
"http://xqib.org",
"b",
- "js-eval");
+ "js-call");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_string;
+ paramTypes[0] = xs_string;
+ signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
+ {
+ ch.ethz.mxquery.functions.b.JsCall iter = new ch.ethz.mxquery.functions.b.JsCall();
+ iter.setContext(context, false);
+
+ type = null;
+
+ function = new Function(
+ null,signature,
+ iter, null, type );
+ fg.add(function);
+ }
+
+ qn = new QName(
+ "http://xqib.org",
+ "b",
+ "js-call");
+ paramTypes = new TypeInfo[2];
+
+ paramTypes[0] = xs_string;
+ paramTypes[1] = item___star;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
+ {
+ ch.ethz.mxquery.functions.b.JsCall iter = new ch.ethz.mxquery.functions.b.JsCall();
+ iter.setContext(context, false);
- {
- ch.ethz.mxquery.functions.b.JsEval iter = new ch.ethz.mxquery.functions.b.JsEval();
+ type = null;
+
+ function = new Function(
+ null,signature,
+ iter, null, type );
+ fg.add(function);
+ }
+
+ qn = new QName(
+ "http://xqib.org",
+ "b",
+ "js-call");
+ paramTypes = new TypeInfo[3];
+
+ paramTypes[0] = xs_string;
+ paramTypes[1] = item___star;
+ paramTypes[2] = item___star;
+ signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
+
+ {
+ ch.ethz.mxquery.functions.b.JsCall iter = new ch.ethz.mxquery.functions.b.JsCall();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
"b",
- "timer");
- paramTypes = new TypeInfo[2];
+ "js-call");
+ paramTypes = new TypeInfo[4];
- paramTypes[0] = xs_integer;
+ paramTypes[0] = xs_string;
+ paramTypes[1] = item___star;
+ paramTypes[2] = item___star;
+ paramTypes[3] = item___star;
+ signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
- paramTypes[1] = function__;
+ {
+ ch.ethz.mxquery.functions.b.JsCall iter = new ch.ethz.mxquery.functions.b.JsCall();
+ iter.setContext(context, false);
+ type = null;
+
+ function = new Function(
+ null,signature,
+ iter, null, type );
+ fg.add(function);
+ }
+
+ qn = new QName(
+ "http://xqib.org",
+ "b",
+ "js-call");
+ paramTypes = new TypeInfo[5];
+
+ paramTypes[0] = xs_string;
+ paramTypes[1] = item___star;
+ paramTypes[2] = item___star;
+ paramTypes[3] = item___star;
+ paramTypes[4] = item___star;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
+ {
+ ch.ethz.mxquery.functions.b.JsCall iter = new ch.ethz.mxquery.functions.b.JsCall();
+ iter.setContext(context, false);
- {
+ type = null;
+
+ function = new Function(
+ null,signature,
+ iter, null, type );
+ fg.add(function);
+ }
+
+ qn = new QName(
+ "http://xqib.org",
+ "b",
+ "js-call");
+ paramTypes = new TypeInfo[6];
+
+ paramTypes[0] = xs_string;
+ paramTypes[1] = item___star;
+ paramTypes[2] = item___star;
+ paramTypes[3] = item___star;
+ paramTypes[4] = item___star;
+ paramTypes[5] = item___star;
+ signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
+
+ {
+ ch.ethz.mxquery.functions.b.JsCall iter = new ch.ethz.mxquery.functions.b.JsCall();
+ iter.setContext(context, false);
+
+ type = null;
+
+ function = new Function(
+ null,signature,
+ iter, null, type );
+ fg.add(function);
+ }
+
+ qn = new QName(
+ "http://xqib.org",
+ "b",
+ "js-eval");
+ paramTypes = new TypeInfo[1];
+
+ paramTypes[0] = xs_string;
+ signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
+
+ {
+ ch.ethz.mxquery.functions.b.JsEval iter = new ch.ethz.mxquery.functions.b.JsEval();
+ iter.setContext(context, false);
+
+ type = null;
+
+ function = new Function(
+ null,signature,
+ iter, null, type );
+ fg.add(function);
+ }
+
+ qn = new QName(
+ "http://xqib.org",
+ "b",
+ "timer");
+ paramTypes = new TypeInfo[2];
+
+ paramTypes[0] = xs_integer;
+ paramTypes[1] = function__;
+ signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
+
+ {
ch.ethz.mxquery.functions.b.Timer iter = new ch.ethz.mxquery.functions.b.Timer();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -155,18 +291,17 @@
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.GetCookieNames iter = new ch.ethz.mxquery.functions.b.GetCookieNames();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -174,22 +309,20 @@
"getCookie");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_string;
-
+ paramTypes[0] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.GetCookie iter = new ch.ethz.mxquery.functions.b.GetCookie();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -197,22 +330,20 @@
"removeCookie");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_string;
-
+ paramTypes[0] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.RemoveCookie iter = new ch.ethz.mxquery.functions.b.RemoveCookie();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -220,24 +351,21 @@
"setCookie");
paramTypes = new TypeInfo[2];
- paramTypes[0] = xs_string;
-
- paramTypes[1] = xs_string;
-
+ paramTypes[0] = xs_string;
+ paramTypes[1] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.SetCookie iter = new ch.ethz.mxquery.functions.b.SetCookie();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -245,26 +373,22 @@
"setCookie");
paramTypes = new TypeInfo[3];
- paramTypes[0] = xs_string;
-
- paramTypes[1] = xs_string;
-
- paramTypes[2] = xs_dateTime;
-
+ paramTypes[0] = xs_string;
+ paramTypes[1] = xs_string;
+ paramTypes[2] = xs_dateTime;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.SetCookie iter = new ch.ethz.mxquery.functions.b.SetCookie();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -274,18 +398,17 @@
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.LocUri iter = new ch.ethz.mxquery.functions.b.LocUri();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -293,22 +416,20 @@
"setHref");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_string;
-
+ paramTypes[0] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.SetHref iter = new ch.ethz.mxquery.functions.b.SetHref();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -318,18 +439,17 @@
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.GetLocation iter = new ch.ethz.mxquery.functions.b.GetLocation();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -337,22 +457,20 @@
"alert");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_string;
-
+ paramTypes[0] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.Alert iter = new ch.ethz.mxquery.functions.b.Alert();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -360,24 +478,21 @@
"removeClass");
paramTypes = new TypeInfo[2];
- paramTypes[0] = node___plus;
-
- paramTypes[1] = xs_string;
-
+ paramTypes[0] = node___plus;
+ paramTypes[1] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.RemoveClassName iter = new ch.ethz.mxquery.functions.b.RemoveClassName();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -385,22 +500,20 @@
"getClasses");
paramTypes = new TypeInfo[1];
- paramTypes[0] = node___plus;
-
+ paramTypes[0] = node___plus;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.GetClasses iter = new ch.ethz.mxquery.functions.b.GetClasses();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -408,24 +521,21 @@
"addClass");
paramTypes = new TypeInfo[2];
- paramTypes[0] = node___plus;
-
- paramTypes[1] = xs_string;
-
+ paramTypes[0] = node___plus;
+ paramTypes[1] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.AddClassName iter = new ch.ethz.mxquery.functions.b.AddClassName();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -433,28 +543,23 @@
"addEventListener");
paramTypes = new TypeInfo[4];
- paramTypes[0] = node___plus;
-
- paramTypes[1] = xs_string;
-
- paramTypes[2] = QName;
-
- paramTypes[3] = xs_integer;
-
+ paramTypes[0] = node___plus;
+ paramTypes[1] = xs_string;
+ paramTypes[2] = QName;
+ paramTypes[3] = xs_integer;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.AddEventListener iter = new ch.ethz.mxquery.functions.b.AddEventListener();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -462,26 +567,22 @@
"addEventListener");
paramTypes = new TypeInfo[3];
- paramTypes[0] = node___plus;
-
- paramTypes[1] = xs_string;
-
- paramTypes[2] = function__;
-
+ paramTypes[0] = node___plus;
+ paramTypes[1] = xs_string;
+ paramTypes[2] = function__;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.AddEventListener iter = new ch.ethz.mxquery.functions.b.AddEventListener();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -489,28 +590,23 @@
"removeEventListener");
paramTypes = new TypeInfo[4];
- paramTypes[0] = node___plus;
-
- paramTypes[1] = xs_string;
-
- paramTypes[2] = QName;
-
- paramTypes[3] = xs_integer;
-
+ paramTypes[0] = node___plus;
+ paramTypes[1] = xs_string;
+ paramTypes[2] = QName;
+ paramTypes[3] = xs_integer;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.RemoveEventListener iter = new ch.ethz.mxquery.functions.b.RemoveEventListener();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -518,26 +614,22 @@
"removeEventListener");
paramTypes = new TypeInfo[3];
- paramTypes[0] = node__;
-
- paramTypes[1] = xs_string;
-
- paramTypes[2] = function__;
-
+ paramTypes[0] = node__;
+ paramTypes[1] = xs_string;
+ paramTypes[2] = function__;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.RemoveEventListener iter = new ch.ethz.mxquery.functions.b.RemoveEventListener();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -547,18 +639,17 @@
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.Dom iter = new ch.ethz.mxquery.functions.b.Dom();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -568,18 +659,17 @@
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.WindowInfo iter = new ch.ethz.mxquery.functions.b.WindowInfo();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -587,24 +677,21 @@
"getStyle");
paramTypes = new TypeInfo[2];
- paramTypes[0] = node__;
-
- paramTypes[1] = xs_string;
-
+ paramTypes[0] = node__;
+ paramTypes[1] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.GetStyle iter = new ch.ethz.mxquery.functions.b.GetStyle();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://xqib.org",
@@ -612,26 +699,22 @@
"setStyle");
paramTypes = new TypeInfo[3];
- paramTypes[0] = node__;
-
- paramTypes[1] = xs_string;
-
- paramTypes[2] = xs_string;
-
+ paramTypes[0] = node__;
+ paramTypes[1] = xs_string;
+ paramTypes[2] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.b.SetStyle iter = new ch.ethz.mxquery.functions.b.SetStyle();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -639,24 +722,21 @@
"QName");
paramTypes = new TypeInfo[2];
- paramTypes[0] = xs_string_quest;
-
- paramTypes[1] = xs_string;
-
+ paramTypes[0] = xs_string_quest;
+ paramTypes[1] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.FNQName iter = new ch.ethz.mxquery.functions.fn.FNQName();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -664,22 +744,20 @@
"abs");
paramTypes = new TypeInfo[1];
- paramTypes[0] = numeric_quest;
-
+ paramTypes[0] = numeric_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Abs iter = new ch.ethz.mxquery.functions.fn.Abs();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -687,23 +765,21 @@
"adjust-date-to-timezone");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_date_quest;
-
+ paramTypes[0] = xs_date_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone iter = new ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone();
iter.setContext(context, false);
- type = xs_date;
+ type = xs_date;
iter.setReturnType(type.getType());
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -711,25 +787,22 @@
"adjust-date-to-timezone");
paramTypes = new TypeInfo[2];
- paramTypes[0] = xs_date_quest;
-
- paramTypes[1] = xs_dayTimeDuration_quest;
-
+ paramTypes[0] = xs_date_quest;
+ paramTypes[1] = xs_dayTimeDuration_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone iter = new ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone();
iter.setContext(context, false);
- type = xs_date;
+ type = xs_date;
iter.setReturnType(type.getType());
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -737,23 +810,21 @@
"adjust-dateTime-to-timezone");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_dateTime_quest;
-
+ paramTypes[0] = xs_dateTime_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone iter = new ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone();
iter.setContext(context, false);
- type = xs_dateTime;
+ type = xs_dateTime;
iter.setReturnType(type.getType());
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -761,25 +832,22 @@
"adjust-dateTime-to-timezone");
paramTypes = new TypeInfo[2];
- paramTypes[0] = xs_dateTime_quest;
-
- paramTypes[1] = xs_dayTimeDuration_quest;
-
+ paramTypes[0] = xs_dateTime_quest;
+ paramTypes[1] = xs_dayTimeDuration_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone iter = new ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone();
iter.setContext(context, false);
- type = xs_dateTime;
+ type = xs_dateTime;
iter.setReturnType(type.getType());
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -787,25 +855,22 @@
"adjust-time-to-timezone");
paramTypes = new TypeInfo[2];
- paramTypes[0] = xs_time_quest;
-
- paramTypes[1] = xs_dayTimeDuration_quest;
-
+ paramTypes[0] = xs_time_quest;
+ paramTypes[1] = xs_dayTimeDuration_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone iter = new ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone();
iter.setContext(context, false);
- type = xs_time;
+ type = xs_time;
iter.setReturnType(type.getType());
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -813,23 +878,21 @@
"adjust-time-to-timezone");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_time_quest;
-
+ paramTypes[0] = xs_time_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone iter = new ch.ethz.mxquery.functions.fn.DateTimeAdjustTimezone();
iter.setContext(context, false);
- type = xs_time;
+ type = xs_time;
iter.setReturnType(type.getType());
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -837,22 +900,20 @@
"avg");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_anyAtomicType_star;
-
+ paramTypes[0] = xs_anyAtomicType_star;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Avg iter = new ch.ethz.mxquery.functions.fn.Avg();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -860,22 +921,20 @@
"base-uri");
paramTypes = new TypeInfo[1];
- paramTypes[0] = node__;
-
+ paramTypes[0] = node__;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.BaseUri iter = new ch.ethz.mxquery.functions.fn.BaseUri();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -885,18 +944,17 @@
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.BaseUri iter = new ch.ethz.mxquery.functions.fn.BaseUri();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -904,22 +962,20 @@
"boolean");
paramTypes = new TypeInfo[1];
- paramTypes[0] = item___star;
-
+ paramTypes[0] = item___star;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.BooleanIterator iter = new ch.ethz.mxquery.functions.fn.BooleanIterator();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -927,22 +983,20 @@
"ceiling");
paramTypes = new TypeInfo[1];
- paramTypes[0] = numeric_quest;
-
+ paramTypes[0] = numeric_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Ceiling iter = new ch.ethz.mxquery.functions.fn.Ceiling();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -950,24 +1004,21 @@
"codepoint-equal");
paramTypes = new TypeInfo[2];
- paramTypes[0] = xs_string_quest;
-
- paramTypes[1] = xs_string_quest;
-
+ paramTypes[0] = xs_string_quest;
+ paramTypes[1] = xs_string_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.CodePointEqual iter = new ch.ethz.mxquery.functions.fn.CodePointEqual();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -975,22 +1026,20 @@
"codepoints-to-string");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_integer_star;
-
+ paramTypes[0] = xs_integer_star;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.CodepointsToString iter = new ch.ethz.mxquery.functions.fn.CodepointsToString();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -1000,18 +1049,17 @@
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Collection iter = new ch.ethz.mxquery.functions.fn.Collection();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -1019,22 +1067,20 @@
"collection");
paramTypes = new TypeInfo[1];
- paramTypes[0] = xs_string_quest;
-
+ paramTypes[0] = xs_string_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Collection iter = new ch.ethz.mxquery.functions.fn.Collection();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -1042,26 +1088,22 @@
"compare");
paramTypes = new TypeInfo[3];
- paramTypes[0] = xs_string_quest;
-
- paramTypes[1] = xs_string_quest;
-
- paramTypes[2] = xs_string;
-
+ paramTypes[0] = xs_string_quest;
+ paramTypes[1] = xs_string_quest;
+ paramTypes[2] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Compare iter = new ch.ethz.mxquery.functions.fn.Compare();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -1069,24 +1111,21 @@
"compare");
paramTypes = new TypeInfo[2];
- paramTypes[0] = xs_string_quest;
-
- paramTypes[1] = xs_string_quest;
-
+ paramTypes[0] = xs_string_quest;
+ paramTypes[1] = xs_string_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Compare iter = new ch.ethz.mxquery.functions.fn.Compare();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -1094,24 +1133,21 @@
"concat");
paramTypes = new TypeInfo[2];
- paramTypes[0] = xs_anyAtomicType_quest;
-
- paramTypes[1] = xs_anyAtomicType_quest;
-
+ paramTypes[0] = xs_anyAtomicType_quest;
+ paramTypes[1] = xs_anyAtomicType_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Concat iter = new ch.ethz.mxquery.functions.fn.Concat();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -1119,26 +1155,22 @@
"contains");
paramTypes = new TypeInfo[3];
- paramTypes[0] = xs_string_quest;
-
- paramTypes[1] = xs_string_quest;
-
- paramTypes[2] = xs_string;
-
+ paramTypes[0] = xs_string_quest;
+ paramTypes[1] = xs_string_quest;
+ paramTypes[2] = xs_string;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Contains iter = new ch.ethz.mxquery.functions.fn.Contains();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -1146,24 +1178,21 @@
"contains");
paramTypes = new TypeInfo[2];
- paramTypes[0] = xs_string_quest;
-
- paramTypes[1] = xs_string_quest;
-
+ paramTypes[0] = xs_string_quest;
+ paramTypes[1] = xs_string_quest;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.Contains iter = new ch.ethz.mxquery.functions.fn.Contains();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -1171,22 +1200,20 @@
"count");
paramTypes = new TypeInfo[1];
- paramTypes[0] = item___star;
-
+ paramTypes[0] = item___star;
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.CountIterator iter = new ch.ethz.mxquery.functions.fn.CountIterator();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- }
+ }
qn = new QName(
"http://www.w3.org/2005/xpath-functions",
@@ -1196,18 +1223,17 @@
signature = new FunctionSignature(qn, paramTypes, FunctionSignature.SYSTEM_FUNCTION, new Hashtable());
-
- {
+ {
ch.ethz.mxquery.functions.fn.CurrentDate iter = new ch.ethz.mxquery.functions.fn.CurrentDate();
iter.setContext(context, false);
- type = null;
+ type = null;
function = new Function(
null,signature,
iter, null, type );
fg.add(function);
- ...
[truncated message content] |