我正在使用BaseX 7.9并希望将WRITEBACK选项设置为true。所以,我在编辑器窗口中执行db:writeback[true]
查询信息显示:
Compiling:
- removing unknown element/attribute true
- db:writeback[()]: removing ()
Query:
db:writeback[true]
Optimized Query:
()
Result:
- Hit(s): 0 Items
- Updated: 0 Items
- Printed: 0 Bytes
- Read Locking: local [prueba_08242014_01]
- Write Locking: none
Timing:
- Parsing: 0.93 ms
- Compiling: 0.27 ms
- Evaluating: 0.42 ms
- Printing: 1.24 ms
- Total Time: 2.86 ms
Query plan:
<QueryPlan>
<Empty size="0"/>
</QueryPlan>
然而,当我执行db:system()
时,WRITEBACK在结果窗口中显示为false:
<system>
<localoptions>
...
<writeback>false</writeback>
...
</localoptions>
</system>
(缩写)
答案 0 :(得分:1)
BaseX自动注册db
命名空间的http://basex.org/modules/db
前缀。您的代码被评估为XQuery,并返回db
命名空间中具有本地名称writeback
的所有根元素,然后对具有true
子节点的谓词进行过滤。与此查询匹配的输入文档是
<writeback xmlns="http://basex.org/modules/db"><true/></writeback>
要修改BaseX中的选项,请使用命令输入中的SET [option] [value]
command。