错误:
然而,从控制台,所需的输出:
nicholas@mordor:~$
nicholas@mordor:~$ curl http://localhost:8080/exist/rest/db/scripts/notes.xq
<notes>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<note>
foo
</note>
<note>
bar
</note>
</notes>
<notes>
<note>
foo
</note>
<note>
bar
</note>
<note>
baz
</note>
</notes>nicholas@mordor:~$
nicholas@mordor:~$
nicholas@mordor:~$ lynx http://localhost:8080/exist/rest/db/scripts/notes.xq --dump
<notes>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<note>
foo
</note>
<note>
bar
</note>
</notes>
<notes>
<note>
foo
</note>
<note>
bar
</note>
<note>
baz
</note>
</notes>nicholas@mordor:~$
nicholas@mordor:~$
所以这就是我正在寻找的输出,或类似的输出,来自 Firefox。
FLWOR
: _
xquery version "3.0";
for $note in collection('/db/tmp')/notes
return $note
这就像我能做到的一样简单。
eXide
从 GUI 控制台返回的内容:
<notes>
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<note>
foo
</note>
<note>
bar
</note>
</notes>
2
<notes>
<note>
foo
</note>
<note>
bar
</note>
<note>
baz
</note>
</notes>
这是我正在寻找的输出。
所以也许这更像是浏览器的配置错误而不是其他任何东西?