Re: [basex-talk] Problem with BaseX inserting a namespace … how do I stop it

2012-04-03 Thread Lukas Kircher
Hi Mike, thanks for the effort - this recreates the issue for me and is certainly a bug, as you said. I'll have a look at it. Regards, Lukas On Mon, Apr 2, 2012 at 6:01 PM, Mike Hawkes mikehaw...@me.com wrote: Hi A bit laborious to recreate but .. here goes: basexclient ... insert nodes

Re: [basex-talk] Problem with BaseX inserting a namespace … how do I stop it

2012-04-03 Thread Leo Wörteler
Hi, Am 02.04.2012 18:01, schrieb Mike Hawkes: A bit laborious to recreate but .. here goes: I found a simpler repro: CREATE DB test ac//a XQUERY insert node b xmlns='b'/ before /a/c XQUERY insert node d/ into /a/c This produces: a b xmlns=b/ c d xmlns=b/ /c /a

Re: [basex-talk] Problem with BaseX inserting a namespace … how do I stop it

2012-04-03 Thread Mike Hawkes
Thanks lots. In the meantime, can I force the http functions to return everything using the default namespace? Or is it a case of writing XQuery functions to strip it all before calling the insert? Thanks again. Much appreciated. Mike On 3 Apr 2012, at 12:58, Leo Wörteler wrote: Hi, Am

Re: [basex-talk] Problem with BaseX inserting a namespace … how do I stop it

2012-04-02 Thread Christian Grün
Hi Mike, thanks for your report. It would be great if you could provide us with a small example that allows us to reproduce the issue (an export of your original database with the namespace (which is being added to the new node) may suffice). Best, Christian On Mon,

Re: [basex-talk] Problem with BaseX inserting a namespace … how do I stop it

2012-04-02 Thread Christian Grün
Sorry, I still got some questions.. drop database test create database test /initialdb.xml The database you're creating seems to be called test; what's initialdb.xml? 14:00:00.710    [127.0.0.1:49788]       QUERY(4)        declare variable $DB external; insert node audit

Re: [basex-talk] Problem with BaseX inserting a namespace … how do I stop it

2012-04-02 Thread Mike Hawkes
The database contains root auditlog ... elements should end up in here ... /auditlog /root The initial XML file contains the initial nodes with which to populate the XML database (root plus numerous other nodes). The PHP code inserts additional nodes as it runs. For every node I

Re: [basex-talk] Problem with BaseX inserting a namespace … how do I stop it

2012-04-02 Thread Mike Hawkes
Hi Lukas/Christian It's the built-in one as far as I'm aware - I haven't done anything special to add or remove any parsers. But that's sent me down a path where I can get it reliably. It appears that it's coming from another query that I run to check the state of a web-site. As soon as I run

Re: [basex-talk] Problem with BaseX inserting a namespace … how do I stop it

2012-04-02 Thread Mike Hawkes
Yep - this definitely causes problems. Insert a node that includes a namespace and all subsequent nodes end up with a namespace inserted. So ... I think this presents a bug: root nodes without namespace/ new nodes work well/ /root vs. root nodes without namespace/ node with