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

类别:Java 点击:0 评论:0 推荐:
            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);

本文地址:http://com.8s8s.com/it/it14234.htm