Never mind, I still had the terminal opened when I ran this in the GUI… probably was interfering.
<commands>
<create-db name="en-us"/>
<add path="devicehelp.xml">
<menu id="devicehelp"/>
</add>
<add path="smbonly.xml">
<menu id="smbonly"/>
</add>
<add path="ptt-help.xml">
<menu id="ptt-help"/>
</add>
<xquery><![CDATA[
let $x := db:open('en-us')/*[@id='smbonly']
let $x-uri := substring-after($x/base-uri(), 'en-us')
return db:replace('en-us', $x-uri, document{$x})
]]></xquery>
<list name="en-us"/>
</commands>
I wonder what this could be. The script below gives me "smbonly
ptt-help new" as result; what do you get?
<xquery>
<commands>
<create-db name="en-us"/>
<add path="devicehelp.xml">
<menu id="devicehelp"/>
</add>
<add path="smbonly.xml">
<menu id="smbonly"/>
</add>
<add path="ptt-help.xml">
<menu id="ptt-help"/>
</add>
<xquery>
<![CDATA[
db:replace('en-us', 'devicehelp.xml', <menu id="new"/>)
]]></xquery>
for $x in /*</xquery>
return $x/data(@id)
</commands>