Issues inserting nodes with @xml:lang

Wednesday, 18 December 2013 · 3 messages · last reply 19 Dec 2013
AB
Andy Buncein reply to France Baril, 18 Dec 2013, 18:2218 Dec 2013 17:42 #
Hi France, It looks like it might be the same as an issue I found [1]. Fixed for me by the 7.8 beta. Regards /Andy [1] https://github.com/BaseXdb/basex/issues/780#issuecomment-27771795 On Wed, Dec 18, 2013 at 4:22 PM, France Baril <france.baril at architextus.com>wrote:
Quoted text · France Baril · 39 lines
> Hi, > > I am trying to figure out how to allow the use of @xml:lang in an .xqm. > I've been using it before without the need to add any declaration, but in > this case I am getting an error: > > Unexpected error: Improper use? Potential bug? Your feedback is welcome: > Contact: basex-talk at mailman.uni-konstanz.de > Version: BaseX 7.7.2 > Java: Apple Inc., 1.6.0_65 > OS: Mac OS X, i386 > Stack Trace: ... > > I am able to reproduce the error and get rid of it simply by adding or removing @xml:lang attributes in my content. > > I have attached a simple example, you'll need a db named tests to receive the result. > > > - If you run the .xqm as is, you should get the unexpected error. > > > - If you remove all @xml:lang="en-us" in the function test-nodes:get-trans-units-1(), the result node will be saved in the tests db. > > What am I missing? > > > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com > (514) 572-0341 > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > >
FB
France Baril18 Dec 2013 18:22 #
Hi, I am trying to figure out how to allow the use of @xml:lang in an .xqm. I've been using it before without the need to add any declaration, but in this case I am getting an error: Unexpected error: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk at mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Apple Inc., 1.6.0_65 OS: Mac OS X, i386 Stack Trace: ... I am able to reproduce the error and get rid of it simply by adding or removing @xml:lang attributes in my content. I have attached a simple example, you'll need a db named tests to receive the result. - If you run the .xqm as is, you should get the unexpected error. - If you remove all @xml:lang="en-us" in the function test-nodes:get-trans-units-1(), the result node will be saved in the tests db. What am I missing?
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com (514) 572-0341
FB
France Barilin reply to Andy Bunce, 18 Dec 2013, 17:4219 Dec 2013 04:06 #
Does look similar, thanks!
Quoted text · Andy Bunce · 56 lines
On Wed, Dec 18, 2013 at 11:42 AM, Andy Bunce <bunce.andy at gmail.com> wrote: > Hi France, > It looks like it might be the same as an issue I found [1]. Fixed for me > by the 7.8 beta. > > Regards > /Andy > > [1] https://github.com/BaseXdb/basex/issues/780#issuecomment-27771795 > > > On Wed, Dec 18, 2013 at 4:22 PM, France Baril < > france.baril at architextus.com> wrote: > >> Hi, >> >> I am trying to figure out how to allow the use of @xml:lang in an .xqm. >> I've been using it before without the need to add any declaration, but in >> this case I am getting an error: >> >> Unexpected error: Improper use? Potential bug? Your feedback is welcome: >> Contact: basex-talk at mailman.uni-konstanz.de >> Version: BaseX 7.7.2 >> Java: Apple Inc., 1.6.0_65 >> OS: Mac OS X, i386 >> Stack Trace: ... >> >> I am able to reproduce the error and get rid of it simply by adding or removing @xml:lang attributes in my content. >> >> I have attached a simple example, you'll need a db named tests to receive the result. >> >> >> - If you run the .xqm as is, you should get the unexpected error. >> >> >> >> >> - If you remove all @xml:lang="en-us" in the function test-nodes:get-trans-units-1(), the result node will be saved in the tests db. >> >> What am I missing? >> >> >> >> -- >> France Baril >> Architecte documentaire / Documentation architect >> france.baril at architextus.com >> (514) 572-0341 >> >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >
-- France Baril Architecte documentaire / Documentation architect france.baril at architextus.com (514) 572-0341

⚡Generated with XQuery