BaseX GUI:回写未设置为true

时间:2014-09-09 00:26:20

标签: xquery basex

我正在使用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>

(缩写)

1 个答案:

答案 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

Example screenshot