Xpath 为什么xqilla找不到名称空间?

Xpath 为什么xqilla找不到名称空间?,xpath,xquery,xmlstarlet,xidel,xqilla,Xpath,Xquery,Xmlstarlet,Xidel,Xqilla,这是失败的,我不确定这是xqilla的限制还是缺陷: 在同一个file.xml上使用xmlstarlet: $ xidel file.xml --extract '//abcd:case[@xyz:displayName="locate"]/abcd:condition/text()' **** Retrieving: x.bpel **** **** Processing: x.bpel **** hello world $ xml sel -t -v '//abcd:case[@xyz:d

这是失败的,我不确定这是xqilla的限制还是缺陷:

在同一个file.xml上使用xmlstarlet:

$ xidel file.xml --extract '//abcd:case[@xyz:displayName="locate"]/abcd:condition/text()'
**** Retrieving: x.bpel ****
**** Processing: x.bpel ****
hello world
$ xml sel -t -v '//abcd:case[@xyz:displayName="locate"]/abcd:condition/text()' file.xml

            hello world
如何让sqilla找到名称空间

更新:我想补充一下,我是如何通过创建另一个文件在下面为sqilla工作的:

$ cat newfile
declare namespace xyz="http://www.ibm.com/xmlns/prod/websphere/business-process/6.0.0/";
declare namespace abcd="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
doc("file.xml")//abcd:case[@xyz:displayName='locate']/abcd:condition/text()
然后通过以下方式调用它:

$ xqilla newfile

            hello world

这就是sqilla的工作原理吗

它不起作用的原因是XQilla对名称空间非常敏感,因此出现了初始错误[err:XPST0081]。有关更多命令行信息,请访问。

StackOverflow是关于帮助人们修复现有代码的。对功能评论、教程、研究、工具、建议、库和代码的请求是离题的。在这里发布更多Qs之前,请阅读、、和。祝你好运
$ cat newfile
declare namespace xyz="http://www.ibm.com/xmlns/prod/websphere/business-process/6.0.0/";
declare namespace abcd="http://schemas.xmlsoap.org/ws/2004/03/business-process/";
doc("file.xml")//abcd:case[@xyz:displayName='locate']/abcd:condition/text()
$ xqilla newfile

            hello world