Two tags in different namespaces with same name
Wednesday, 1 February 2012 · 1 message
CG
Christian Grün1 Feb 2012 00:24 #
Dear Philipp,
I didn't manage to reproduce the issue straight off, so... could you create a small sample XML document that will allow me to reproduce the issue?
Thanks,
Christian
Quoted text · Philipp Hitzler · 43 lines
On Wed, Feb 1, 2012 at 12:06 AM, Philipp Hitzler <philipp.hitzler at bettermarks.de> wrote: > Hello, > > I recently discovered with delight baseX XML Database. I fired all kind of > XQueries and was pleased how fast the output popped up in the text window. > Now I came across something strange. I have two tags in different namespaces > with same name, e.g. > > edl:skill and tdl:skill > > In the GUI command window I wrote > > declare namespace tdl="http://www.bettermarks.com/TDL"; > declare namespace edl="http://www.bettermarks.com/EDL"; > //edl:skill > > and the edl:skill tags/nodes showed up. > > Then I tried > > > declare namespace tdl="http://www.bettermarks.com/TDL"; > declare namespace edl="http://www.bettermarks.com/EDL"; > //tdl:skill > > and the result set was unexpectedly empty. > This was in BaseX 7.0.2 on Windows 7. > > After that I tried a bit and decided to install the latest snapshot. This > time I searched for //tdl:skill first, same command as above, and found the > expected tags. But the search for //edl:skill yielded not any result. It > feels like the first search "blocks" the second, but maybe/probably there > quite different reasons behind this. > > I hope I chose the right directory to send my dear problem in and I gladly > provide more information on my system, database etc. if needed. > > Kind regards, Philipp > > > -- > Using Opera's revolutionary email client: http://www.opera.com/mail/
Written for BaseX 7.0. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery