Added two queries to return all the functions and operators.
Project: http://git-wip-us.apache.org/repos/asf/incubator-vxquery/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-vxquery/commit/4a814455 Tree: http://git-wip-us.apache.org/repos/asf/incubator-vxquery/tree/4a814455 Diff: http://git-wip-us.apache.org/repos/asf/incubator-vxquery/diff/4a814455 Branch: refs/heads/master Commit: 4a8144553b5ba7191424f4d82bbcf1f7ca51b8b2 Parents: a253e2f Author: Preston Carman <[email protected]> Authored: Thu Feb 13 09:41:12 2014 -0800 Committer: Preston Carman <[email protected]> Committed: Thu Feb 13 09:41:12 2014 -0800 ---------------------------------------------------------------------- .../src/main/resources/util/build_saxon_collection_xml.py | 2 +- .../src/main/resources/util/vxquery_functions.xq | 10 ++++++++++ .../src/main/resources/util/vxquery_operators.xq | 10 ++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-vxquery/blob/4a814455/vxquery-benchmark/src/main/resources/util/build_saxon_collection_xml.py ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/util/build_saxon_collection_xml.py b/vxquery-benchmark/src/main/resources/util/build_saxon_collection_xml.py index 358d0ed..02f39ee 100644 --- a/vxquery-benchmark/src/main/resources/util/build_saxon_collection_xml.py +++ b/vxquery-benchmark/src/main/resources/util/build_saxon_collection_xml.py @@ -25,7 +25,7 @@ def main(argv): except getopt.GetoptError: print 'The file options for build_saxon_collection_xml.py were not correctly specified.' print 'To see a full list of options try:' - print ' $ python push_benchmark.py -h' + print ' $ python build_saxon_collection_xml.py -h' sys.exit(2) for opt, arg in opts: if opt == '-h': http://git-wip-us.apache.org/repos/asf/incubator-vxquery/blob/4a814455/vxquery-benchmark/src/main/resources/util/vxquery_functions.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/util/vxquery_functions.xq b/vxquery-benchmark/src/main/resources/util/vxquery_functions.xq new file mode 100644 index 0000000..4f3a2d5 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/util/vxquery_functions.xq @@ -0,0 +1,10 @@ +(: XQuery Function List :) +(: VXQuery function list in csv with arguments and return types :) +let $list := "../../../../../vxquery-core/src/main/java/org/apache/vxquery/functions/builtin-functions.xml" +let $r := + for $f in fn:doc($list)/functions/function + let $pl := + for $p in $f/param + return $p/@type + return fn:string-join(($f/@name, fn:string-join($pl, ' '), $f/return/@type), ',') +return fn:string-join($r , '|') \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-vxquery/blob/4a814455/vxquery-benchmark/src/main/resources/util/vxquery_operators.xq ---------------------------------------------------------------------- diff --git a/vxquery-benchmark/src/main/resources/util/vxquery_operators.xq b/vxquery-benchmark/src/main/resources/util/vxquery_operators.xq new file mode 100644 index 0000000..e7f7dd0 --- /dev/null +++ b/vxquery-benchmark/src/main/resources/util/vxquery_operators.xq @@ -0,0 +1,10 @@ +(: XQuery Function List :) +(: VXQuery function list in csv with arguments and return types :) +let $list := "../../../../../vxquery-core/src/main/java/org/apache/vxquery/functions/builtin-operators.xml" +let $r := + for $f in fn:doc($list)/operators/operator + let $pl := + for $p in $f/param + return $p/@type + return fn:string-join(($f/@name, fn:string-join($pl, ' '), $f/return/@type), ',') +return fn:string-join($r , '|') \ No newline at end of file
