Computed namespaces: which one is wrong?
Wednesday, 9 October 2013 · 3 messages
ML
Marco Lettere9 Oct 2013 16:50 #
Hello all,
in 7.6 I used to write code like the following one:
<a>
{namespace { "" } { "eeeeee" }}
</a>it uses to return this as (the expcted) result:
<a xmlns="eeeeee"/>In 7.7 the same code snipped returns a runtime exception stating that namespace '' has been declared twice. I assume it's because a default namespace is created under the hood on the root node. Is it?
Could I please have any help on this?
Thanks a lot,
M.
CG
Christian Grün9 Oct 2013 17:09 #
Hi Marco,
yes, the 7.7 behavior is correct, it’s the result from a recent W3 decision [1]. You’ll probably have to rewrite your query as follows:
<a xmlns="eeeeee"/>Hope this helps,
Christian
[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=22032S
___________________________
2013/10/9 Marco Lettere <marco.lettere at dedalus.eu>:
Quoted text · Marco Lettere · 22 lines
> Hello all, > in 7.6 I used to write code like the following one: > > <a> > {namespace { "" } { "eeeeee" }} > </a> > > it uses to return this as (the expcted) result: > > <a xmlns="eeeeee"/> > > In 7.7 the same code snipped returns a runtime exception stating that > namespace '' has been declared twice. I assume it's because a default > namespace is created under the hood on the root node. Is it? > > Could I please have any help on this? > Thanks a lot, > M. > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
KS
Kendall Shaw9 Oct 2013 19:55 #
I think there is a trailing S in that URL. Without the S:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22032
Quoted text · Christian Grün · 43 lines
On 10/09/2013 08:09 AM, Christian Grün wrote: > Hi Marco, > > yes, the 7.7 behavior is correct, it’s the result from a recent W3 > decision [1]. You’ll probably have to rewrite your query as follows: > > <a xmlns="eeeeee"/> > > Hope this helps, > Christian > > [1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=22032S > ___________________________ > > 2013/10/9 Marco Lettere <marco.lettere at dedalus.eu>: >> Hello all, >> in 7.6 I used to write code like the following one: >> >> <a> >> {namespace { "" } { "eeeeee" }} >> </a> >> >> it uses to return this as (the expcted) result: >> >> <a xmlns="eeeeee"/> >> >> In 7.7 the same code snipped returns a runtime exception stating that >> namespace '' has been declared twice. I assume it's because a default >> namespace is created under the hood on the root node. Is it? >> >> Could I please have any help on this? >> Thanks a lot, >> M. >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
--
ThisIsHardToRead, asIsThis. This_is_easier, unless_it_is_underlined. This.is.easy. This-is-easy-too. Almost as easy to read as this.
Written for BaseX 7.7. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery