CSDN博客

img tl_ang

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

发表于2004/10/25 20:08:00  631人阅读

            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);
0 0

相关博文

我的热门文章

img
取 消
img