restxq: default namespace and variable in path annotation don't like each other

Monday, 16 December 2013 · 4 messages · last reply 17 Dec 2013
JM
Jean-philippe Magué16 Dec 2013 15:55 #
Hello, We think we've found something that looks like a bug. In the minimal file test_A.xqm, we declare a default namespace and a function with a very simple path annotation (without variable). It works just fine. In test_B.xqm, we just declare a function with a variable in its path annotation. This is OK as well. In test_C.xqm, we declare both a default namespace and a path annotation with a variable. This raises a NullPointerException as you can see in error.html (which also provide version number informations). The choice between variables in path annotation and default element namespace is a difficult one! We'd like to use them both! Or are we missing something ? Best, Jean-Philippe
-- Jean-Philippe Magué Maître de Conférences en Humanités Numériques Responsable de l'Atelier des Humanités Numériques : ahn.ens-lyon.fr Ecole Normale Supérieure de Lyon +33 (0)4 26 23 38 08 -- "Using computers will therefore lead us to a more profound and systematic knowledge of human expression; in principle, it can help us to be more humanistic than before." Busa, 1980.
CG
Christian Grün16 Dec 2013 16:18 #
Dear Jean-Philippe, thanks for the attached files. I remember there was such a bug in 7.7.2. Have you already tried the latest snapshot [1]? Christian [1] http://files.basex.org/releases/latest/
Quoted text · Jean-philippe Magué · 41 lines
On Mon, Dec 16, 2013 at 3:55 PM, Jean-philippe Magué <jean-philippe.mague at ens-lyon.fr> wrote: > Hello, > > We think we've found something that looks like a bug. > In the minimal file test_A.xqm, we declare a default namespace and a > function with a very simple path annotation (without variable). It works > just fine. > In test_B.xqm, we just declare a function with a variable in its path > annotation. This is OK as well. > In test_C.xqm, we declare both a default namespace and a path annotation > with a variable. This raises a NullPointerException as you can see in > error.html (which also provide version number informations). > > The choice between variables in path annotation and default element > namespace is a difficult one! We'd like to use them both! Or are we missing > something ? > > Best, > > Jean-Philippe > > -- > Jean-Philippe Magué > Maître de Conférences en Humanités Numériques > Responsable de l'Atelier des Humanités Numériques : ahn.ens-lyon.fr > Ecole Normale Supérieure de Lyon > +33 (0)4 26 23 38 08 > > -- > > "Using computers will therefore lead us to a more profound and systematic > knowledge of human expression; in principle, it can help us to be more > humanistic than before." > Busa, 1980. > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >
JM
Jean-philippe Magué16 Dec 2013 16:29 #
Dear Christian, No, we haven't tried! We should have done that. And also checked the known bug. I'll install it right away. Best, Jean-Philippe On Mon, Dec 16, 2013 at 4:18 PM, Christian Grün <christian.gruen at gmail.com>wrote:
Quoted text · Christian Grün · 53 lines
> Dear Jean-Philippe, > > thanks for the attached files. I remember there was such a bug in > 7.7.2. Have you already tried the latest snapshot [1]? > > Christian > > [1] http://files.basex.org/releases/latest/ > ___________________________ > > On Mon, Dec 16, 2013 at 3:55 PM, Jean-philippe Magué > <jean-philippe.mague at ens-lyon.fr> wrote: > > Hello, > > > > We think we've found something that looks like a bug. > > In the minimal file test_A.xqm, we declare a default namespace and a > > function with a very simple path annotation (without variable). It works > > just fine. > > In test_B.xqm, we just declare a function with a variable in its path > > annotation. This is OK as well. > > In test_C.xqm, we declare both a default namespace and a path annotation > > with a variable. This raises a NullPointerException as you can see in > > error.html (which also provide version number informations). > > > > The choice between variables in path annotation and default element > > namespace is a difficult one! We'd like to use them both! Or are we > missing > > something ? > > > > Best, > > > > Jean-Philippe > > > > -- > > Jean-Philippe Magué > > Maître de Conférences en Humanités Numériques > > Responsable de l'Atelier des Humanités Numériques : ahn.ens-lyon.fr > > Ecole Normale Supérieure de Lyon > > +33 (0)4 26 23 38 08 > > > > -- > > > > "Using computers will therefore lead us to a more profound and systematic > > knowledge of human expression; in principle, it can help us to be more > > humanistic than before." > > Busa, 1980. > > > > _______________________________________________ > > BaseX-Talk mailing list > > BaseX-Talk at mailman.uni-konstanz.de > > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > >
-- Jean-Philippe Magué Maître de Conférences en Humanités Numériques Responsable de l'Atelier des Humanités Numériques : ahn.ens-lyon.fr Ecole Normale Supérieure de Lyon +33 (0)4 26 23 38 08 -- "Using computers will therefore lead us to a more profound and systematic knowledge of human expression; in principle, it can help us to be more humanistic than before." Busa, 1980.
JM
Jean-philippe Magué17 Dec 2013 15:05 #
Dear Christian, Version 7.8 works perfectly ! Many thanks, Jean-Philippe
Quoted text · Jean-philippe Magué · 86 lines
On Mon, Dec 16, 2013 at 4:29 PM, Jean-philippe Magué < jean-philippe.mague at ens-lyon.fr> wrote: > Dear Christian, > > No, we haven't tried! We should have done that. And also checked the known > bug. I'll install it right away. > > Best, > > Jean-Philippe > > > On Mon, Dec 16, 2013 at 4:18 PM, Christian Grün <christian.gruen at gmail.com > > wrote: > >> Dear Jean-Philippe, >> >> thanks for the attached files. I remember there was such a bug in >> 7.7.2. Have you already tried the latest snapshot [1]? >> >> Christian >> >> [1] http://files.basex.org/releases/latest/ >> ___________________________ >> >> On Mon, Dec 16, 2013 at 3:55 PM, Jean-philippe Magué >> <jean-philippe.mague at ens-lyon.fr> wrote: >> > Hello, >> > >> > We think we've found something that looks like a bug. >> > In the minimal file test_A.xqm, we declare a default namespace and a >> > function with a very simple path annotation (without variable). It works >> > just fine. >> > In test_B.xqm, we just declare a function with a variable in its path >> > annotation. This is OK as well. >> > In test_C.xqm, we declare both a default namespace and a path annotation >> > with a variable. This raises a NullPointerException as you can see in >> > error.html (which also provide version number informations). >> > >> > The choice between variables in path annotation and default element >> > namespace is a difficult one! We'd like to use them both! Or are we >> missing >> > something ? >> > >> > Best, >> > >> > Jean-Philippe >> > >> > -- >> > Jean-Philippe Magué >> > Maître de Conférences en Humanités Numériques >> > Responsable de l'Atelier des Humanités Numériques : ahn.ens-lyon.fr >> > Ecole Normale Supérieure de Lyon >> > +33 (0)4 26 23 38 08 >> > >> > -- >> > >> > "Using computers will therefore lead us to a more profound and >> systematic >> > knowledge of human expression; in principle, it can help us to be more >> > humanistic than before." >> > Busa, 1980. >> > >> > _______________________________________________ >> > BaseX-Talk mailing list >> > BaseX-Talk at mailman.uni-konstanz.de >> > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > >> > > > > -- > Jean-Philippe Magué > Maître de Conférences en Humanités Numériques > Responsable de l'Atelier des Humanités Numériques : ahn.ens-lyon.fr > Ecole Normale Supérieure de Lyon > +33 (0)4 26 23 38 08 > > -- > > "Using computers will therefore lead us to a more profound and systematic > knowledge of human expression; in principle, it can help us to be more > humanistic than before." > Busa, 1980. >
-- Jean-Philippe Magué Maître de Conférences en Humanités Numériques Responsable de l'Atelier des Humanités Numériques : ahn.ens-lyon.fr Ecole Normale Supérieure de Lyon +33 (0)4 26 23 38 08 -- "Using computers will therefore lead us to a more profound and systematic knowledge of human expression; in principle, it can help us to be more humanistic than before." Busa, 1980.

⚡Generated with XQuery