Saxon中的XQuery的查询语句示例,如何清除global variable??

来源:互联网 发布:大数据预处理技术 编辑:程序博客网 时间:2024/05/16 07:58
            String sexp = "declare variable $groupName as xs:string external; " + "/n" +
                "for $t in //quartz/job/job-detail" + " /n" +
                "where $t/group = $groupName" + " /n" +
                "return $t/name";
           
            XQueryExpression exp = staticContext
                    .compileQuery(sexp);
            dynamicContext.clearParameters();
            dynamicContext.setParameter("groupName", groupName);
原创粉丝点击