problem with namespaces in baseX - Namespaces are inserted only once in the database
Tuesday, 28 January 2014 · 9 messages · last reply 13 Feb 2014
IK
Ioannis Kavvouras28 Jan 2014 11:40 #
Hello,
While trying to execute a replace query [1], we face the following problem: The new "capabilities" node contains a group of subnodes which have in their definition the same namespace definition (xmlns namespace). The problem is that in the result after the replacement the namespace definition is only in the first node (ows:ServiceIdentification). In the following nodes the majority of the attributes in the namespace definition are missing and as a consequence the xml file is corrupted as the definition of the elements are undefined. An example of a corrupted node where the attributes of the namespace definition are missing is mentioned at [2].
[1] https://dl.dropboxusercontent.com/u/78985205/query.txt
[2] https://dl.dropboxusercontent.com/u/78985205/result.txt
Regards
Yannis
CG
Christian Grün28 Jan 2014 11:42 #
Yannis,
thanks for your report and the examples. One question ahead: does the problem also occur with the latest snapshot [1]? The next official release will be aligned with the XMLPrague conference [2].
Thanks,
Christian
[1] http://files.basex.org/releases/latest/
[2] http://xmlprague.cz/
Quoted text · Ioannis Kavvouras · 23 lines
On Tue, Jan 28, 2014 at 11:40 AM, Ioannis Kavvouras <i.kavvouras at di.uoa.gr> wrote: > Hello, > > While trying to execute a replace query [1], we face the following problem: > The new "capabilities" node contains a group of subnodes which have in their > definition the same namespace definition (xmlns namespace). The problem is > that in the result after the replacement the namespace definition is only in > the first node (ows:ServiceIdentification). In the following nodes the > majority of the attributes in the namespace definition are missing and as a > consequence the xml file is corrupted as the definition of the elements are > undefined. An example of a corrupted node where the attributes of the > namespace definition are missing is mentioned at [2]. > > [1] https://dl.dropboxusercontent.com/u/78985205/query.txt > [2] https://dl.dropboxusercontent.com/u/78985205/result.txt > > Regards > Yannis > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
IK
Ioannis Kavvouras28 Jan 2014 12:03 #
Christinan,
Thank you for the quick reply. We changed the baseXDB with the new release but we also had the same problem.
Regards
Yannis
Quoted text · Christian Grün · 37 lines
On 01/28/2014 12:42 PM, Christian Grün wrote: > Yannis, > > thanks for your report and the examples. One question ahead: does the > problem also occur with the latest snapshot [1]? The next official > release will be aligned with the XMLPrague conference [2]. > > Thanks, > Christian > > [1] http://files.basex.org/releases/latest/ > [2] http://xmlprague.cz/ > > > On Tue, Jan 28, 2014 at 11:40 AM, Ioannis Kavvouras > <i.kavvouras at di.uoa.gr> wrote: >> Hello, >> >> While trying to execute a replace query [1], we face the following problem: >> The new "capabilities" node contains a group of subnodes which have in their >> definition the same namespace definition (xmlns namespace). The problem is >> that in the result after the replacement the namespace definition is only in >> the first node (ows:ServiceIdentification). In the following nodes the >> majority of the attributes in the namespace definition are missing and as a >> consequence the xml file is corrupted as the definition of the elements are >> undefined. An example of a corrupted node where the attributes of the >> namespace definition are missing is mentioned at [2]. >> >> [1] https://dl.dropboxusercontent.com/u/78985205/query.txt >> [2] https://dl.dropboxusercontent.com/u/78985205/result.txt >> >> Regards >> Yannis >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Christian Grün28 Jan 2014 13:19 #
Hi Yannis,
yes, I see that the required xmlns:xlink declaration is missing in the resulting document. We will have a look at that!
Thanks,
Christian
Quoted text · Ioannis Kavvouras · 59 lines
On Tue, Jan 28, 2014 at 12:03 PM, Ioannis Kavvouras <i.kavvouras at di.uoa.gr> wrote: > Christinan, > > Thank you for the quick reply. We changed the baseXDB with the new release > but we also had the same problem. > > Regards > Yannis > > > > On 01/28/2014 12:42 PM, Christian Grün wrote: >> >> Yannis, >> >> thanks for your report and the examples. One question ahead: does the >> problem also occur with the latest snapshot [1]? The next official >> release will be aligned with the XMLPrague conference [2]. >> >> Thanks, >> Christian >> >> [1] http://files.basex.org/releases/latest/ >> [2] http://xmlprague.cz/ >> >> >> On Tue, Jan 28, 2014 at 11:40 AM, Ioannis Kavvouras >> <i.kavvouras at di.uoa.gr> wrote: >>> >>> Hello, >>> >>> While trying to execute a replace query [1], we face the following >>> problem: >>> The new "capabilities" node contains a group of subnodes which have in >>> their >>> definition the same namespace definition (xmlns namespace). The problem >>> is >>> that in the result after the replacement the namespace definition is only >>> in >>> the first node (ows:ServiceIdentification). In the following nodes the >>> majority of the attributes in the namespace definition are missing and as >>> a >>> consequence the xml file is corrupted as the definition of the elements >>> are >>> undefined. An example of a corrupted node where the attributes of the >>> namespace definition are missing is mentioned at [2]. >>> >>> [1] https://dl.dropboxusercontent.com/u/78985205/query.txt >>> [2] https://dl.dropboxusercontent.com/u/78985205/result.txt >>> >>> Regards >>> Yannis >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
CG
Christian Grün28 Jan 2014 13:42 #
Quoted text · Christian Grün · 2 lines
> yes, I see that the required xmlns:xlink declaration is missing in the > resulting document. We will have a look at that!
I guess I need more information to reproduce the problem. Could you please provide us with the database instance or, ideally, an sscce?
Christian
Quoted text · Christian Grün · 59 lines
> On Tue, Jan 28, 2014 at 12:03 PM, Ioannis Kavvouras > <i.kavvouras at di.uoa.gr> wrote: >> Christinan, >> >> Thank you for the quick reply. We changed the baseXDB with the new release >> but we also had the same problem. >> >> Regards >> Yannis >> >> >> >> On 01/28/2014 12:42 PM, Christian Grün wrote: >>> >>> Yannis, >>> >>> thanks for your report and the examples. One question ahead: does the >>> problem also occur with the latest snapshot [1]? The next official >>> release will be aligned with the XMLPrague conference [2]. >>> >>> Thanks, >>> Christian >>> >>> [1] http://files.basex.org/releases/latest/ >>> [2] http://xmlprague.cz/ >>> >>> >>> On Tue, Jan 28, 2014 at 11:40 AM, Ioannis Kavvouras >>> <i.kavvouras at di.uoa.gr> wrote: >>>> >>>> Hello, >>>> >>>> While trying to execute a replace query [1], we face the following >>>> problem: >>>> The new "capabilities" node contains a group of subnodes which have in >>>> their >>>> definition the same namespace definition (xmlns namespace). The problem >>>> is >>>> that in the result after the replacement the namespace definition is only >>>> in >>>> the first node (ows:ServiceIdentification). In the following nodes the >>>> majority of the attributes in the namespace definition are missing and as >>>> a >>>> consequence the xml file is corrupted as the definition of the elements >>>> are >>>> undefined. An example of a corrupted node where the attributes of the >>>> namespace definition are missing is mentioned at [2]. >>>> >>>> [1] https://dl.dropboxusercontent.com/u/78985205/query.txt >>>> [2] https://dl.dropboxusercontent.com/u/78985205/result.txt >>>> >>>> Regards >>>> Yannis >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >>
PL
Panagiotis Liakos7 Feb 2014 17:02 #
I can give you access to our database (I just tested with
BaseX78-20140203.150949) if that can be helpful. Let me know and I'll send you the credentials to your e-mail.
Thanks a lot,
Panagiotis
2014-01-28 14:42 GMT+02:00 Christian Grün <christian.gruen at gmail.com>:
Quoted text · Christian Grün · 68 lines
>> yes, I see that the required xmlns:xlink declaration is missing in the >> resulting document. We will have a look at that! > > I guess I need more information to reproduce the problem. Could you > please provide us with the database instance or, ideally, an sscce? > > Christian > > >> On Tue, Jan 28, 2014 at 12:03 PM, Ioannis Kavvouras >> <i.kavvouras at di.uoa.gr> wrote: >>> Christinan, >>> >>> Thank you for the quick reply. We changed the baseXDB with the new release >>> but we also had the same problem. >>> >>> Regards >>> Yannis >>> >>> >>> >>> On 01/28/2014 12:42 PM, Christian Grün wrote: >>>> >>>> Yannis, >>>> >>>> thanks for your report and the examples. One question ahead: does the >>>> problem also occur with the latest snapshot [1]? The next official >>>> release will be aligned with the XMLPrague conference [2]. >>>> >>>> Thanks, >>>> Christian >>>> >>>> [1] http://files.basex.org/releases/latest/ >>>> [2] http://xmlprague.cz/ >>>> >>>> >>>> On Tue, Jan 28, 2014 at 11:40 AM, Ioannis Kavvouras >>>> <i.kavvouras at di.uoa.gr> wrote: >>>>> >>>>> Hello, >>>>> >>>>> While trying to execute a replace query [1], we face the following >>>>> problem: >>>>> The new "capabilities" node contains a group of subnodes which have in >>>>> their >>>>> definition the same namespace definition (xmlns namespace). The problem >>>>> is >>>>> that in the result after the replacement the namespace definition is only >>>>> in >>>>> the first node (ows:ServiceIdentification). In the following nodes the >>>>> majority of the attributes in the namespace definition are missing and as >>>>> a >>>>> consequence the xml file is corrupted as the definition of the elements >>>>> are >>>>> undefined. An example of a corrupted node where the attributes of the >>>>> namespace definition are missing is mentioned at [2]. >>>>> >>>>> [1] https://dl.dropboxusercontent.com/u/78985205/query.txt >>>>> [2] https://dl.dropboxusercontent.com/u/78985205/result.txt >>>>> >>>>> Regards >>>>> Yannis >>>>> _______________________________________________ >>>>> BaseX-Talk mailing list >>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>>
CG
Christian Grün7 Feb 2014 17:18 #
Yes, this would be helpful. Feel free to write me in private.
Cheers,
Christian
Quoted text · Panagiotis Liakos · 77 lines
On Fri, Feb 7, 2014 at 5:02 PM, Panagiotis Liakos <p.liakos at di.uoa.gr> wrote: > I can give you access to our database (I just tested with > BaseX78-20140203.150949) if that can be helpful. Let me know and I'll > send you the credentials to your e-mail. > > Thanks a lot, > Panagiotis > > 2014-01-28 14:42 GMT+02:00 Christian Grün <christian.gruen at gmail.com>: >>> yes, I see that the required xmlns:xlink declaration is missing in the >>> resulting document. We will have a look at that! >> >> I guess I need more information to reproduce the problem. Could you >> please provide us with the database instance or, ideally, an sscce? >> >> Christian >> >> >>> On Tue, Jan 28, 2014 at 12:03 PM, Ioannis Kavvouras >>> <i.kavvouras at di.uoa.gr> wrote: >>>> Christinan, >>>> >>>> Thank you for the quick reply. We changed the baseXDB with the new release >>>> but we also had the same problem. >>>> >>>> Regards >>>> Yannis >>>> >>>> >>>> >>>> On 01/28/2014 12:42 PM, Christian Grün wrote: >>>>> >>>>> Yannis, >>>>> >>>>> thanks for your report and the examples. One question ahead: does the >>>>> problem also occur with the latest snapshot [1]? The next official >>>>> release will be aligned with the XMLPrague conference [2]. >>>>> >>>>> Thanks, >>>>> Christian >>>>> >>>>> [1] http://files.basex.org/releases/latest/ >>>>> [2] http://xmlprague.cz/ >>>>> >>>>> >>>>> On Tue, Jan 28, 2014 at 11:40 AM, Ioannis Kavvouras >>>>> <i.kavvouras at di.uoa.gr> wrote: >>>>>> >>>>>> Hello, >>>>>> >>>>>> While trying to execute a replace query [1], we face the following >>>>>> problem: >>>>>> The new "capabilities" node contains a group of subnodes which have in >>>>>> their >>>>>> definition the same namespace definition (xmlns namespace). The problem >>>>>> is >>>>>> that in the result after the replacement the namespace definition is only >>>>>> in >>>>>> the first node (ows:ServiceIdentification). In the following nodes the >>>>>> majority of the attributes in the namespace definition are missing and as >>>>>> a >>>>>> consequence the xml file is corrupted as the definition of the elements >>>>>> are >>>>>> undefined. An example of a corrupted node where the attributes of the >>>>>> namespace definition are missing is mentioned at [2]. >>>>>> >>>>>> [1] https://dl.dropboxusercontent.com/u/78985205/query.txt >>>>>> [2] https://dl.dropboxusercontent.com/u/78985205/result.txt >>>>>> >>>>>> Regards >>>>>> Yannis >>>>>> _______________________________________________ >>>>>> BaseX-Talk mailing list >>>>>> BaseX-Talk at mailman.uni-konstanz.de >>>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>>
CG
Christian Grün12 Feb 2014 10:48 #
Hi Yannis, hi Panagiotis,
our team member Lukas managed to fix the namespace bug just in time. A new snapshot is available [1], and we will be glad to get your confirmation if the problem is fixed.
And a little announcement to everyone else: BaseX 7.8 will be released this afternoon!
Christian
Quoted text · Lukas Kircher · 56 lines
On Mon, Feb 10, 2014 at 8:38 AM, Lukas Kircher <lk at basex.org> wrote: > Hi Christian, > > ich schau's mir an, sobald es geht. > > Viele Gruesse & viel Erfolg in Stuttgart! > Lukas > > > On Sat, Feb 8, 2014 at 11:21 PM, Christian Grün <cg at basex.org> wrote: >> >> Hi Lukas, >> >> ich habe das aktuelle Update-/Namespace-Problem weiter vereinfacht; >> das Ergebnis findest du hier: >> >> https://github.com/BaseXdb/basex/issues/860 >> >> Könntest du versuchen, den Bug vor dem Release (Di/Mi) noch zu fixen? >> >> Grüße, bis vermutlich Montag! >> Christian >> >> >> >> ---------- Forwarded message ---------- >> From: Panagiotis Liakos <p.liakos at di.uoa.gr> >> Date: Sat, Feb 8, 2014 at 4:03 PM >> Subject: Re: [basex-talk] problem with namespaces in baseX - >> Namespaces are inserted only once in the database >> To: Christian Grün <christian.gruen at gmail.com> >> >> >> Hello Christian,, >> > >> > thanks for the XML file. Could you also provide me with the database >> > itself (e.g. as zip file)? >> > >> >> Here you go, I zipped the whole tomcat webapp, I hope that covers what >> you asked for: >> >> http://ariadni.di.uoa.gr/basex/BaseX78-20140203.150949.zip >> >> >> java.nio.channels.OverlappingFileLockException >> > >> > Have you always been using the client/server architecture for >> > accessing the database? >> > >> >> We mostly use xqj but in order to test something quick or replace a >> file I use the basexclient. Would you suggest something else? >> >> Panagiotis > >
PL
Panagiotis Liakos13 Feb 2014 11:42 #
Hello all,
I just checked with BaseX 7.8 and the problem is indeed fixed.
Thanks a lot!
--Panagiotis
2014-02-12 11:48 GMT+02:00 Christian Grün <cg at basex.org>:
Quoted text · Christian Grün · 68 lines
> Hi Yannis, hi Panagiotis, > > our team member Lukas managed to fix the namespace bug just in time. A > new snapshot is available [1], and we will be glad to get your > confirmation if the problem is fixed. > > And a little announcement to everyone else: BaseX 7.8 will be released > this afternoon! > > Christian > ____________________________________ > > On Mon, Feb 10, 2014 at 8:38 AM, Lukas Kircher <lk at basex.org> wrote: >> Hi Christian, >> >> ich schau's mir an, sobald es geht. >> >> Viele Gruesse & viel Erfolg in Stuttgart! >> Lukas >> >> >> On Sat, Feb 8, 2014 at 11:21 PM, Christian Grün <cg at basex.org> wrote: >>> >>> Hi Lukas, >>> >>> ich habe das aktuelle Update-/Namespace-Problem weiter vereinfacht; >>> das Ergebnis findest du hier: >>> >>> https://github.com/BaseXdb/basex/issues/860 >>> >>> Könntest du versuchen, den Bug vor dem Release (Di/Mi) noch zu fixen? >>> >>> Grüße, bis vermutlich Montag! >>> Christian >>> >>> >>> >>> ---------- Forwarded message ---------- >>> From: Panagiotis Liakos <p.liakos at di.uoa.gr> >>> Date: Sat, Feb 8, 2014 at 4:03 PM >>> Subject: Re: [basex-talk] problem with namespaces in baseX - >>> Namespaces are inserted only once in the database >>> To: Christian Grün <christian.gruen at gmail.com> >>> >>> >>> Hello Christian,, >>> > >>> > thanks for the XML file. Could you also provide me with the database >>> > itself (e.g. as zip file)? >>> > >>> >>> Here you go, I zipped the whole tomcat webapp, I hope that covers what >>> you asked for: >>> >>> http://ariadni.di.uoa.gr/basex/BaseX78-20140203.150949.zip >>> >>> >> java.nio.channels.OverlappingFileLockException >>> > >>> > Have you always been using the client/server architecture for >>> > accessing the database? >>> > >>> >>> We mostly use xqj but in order to test something quick or replace a >>> file I use the basexclient. Would you suggest something else? >>> >>> Panagiotis >> >>
Written for BaseX 7.7, 7.8. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery