#1015 Inserting attributes with new namespaces into elements.

v9.2
closed
5
2012-10-08
2009-12-06
No

Dear Michael,

I have run the following query with Saxon-EE 9.2.0.3J:

declare namespace b="B";
insert node attribute { 'b:b' } { }
into doc('x.xml')/a

The source document "x.xml" contains the empty element "<x/>", and the query yields the following result:

I'd have expected that the namespace declaration would be added to the element..

Hope this helps,
Christian

Discussion

  • Christian Gruen

    Christian Gruen - 2009-12-06

    Sorry for the update... Of course the input document contains "".

     
  • Michael Kay

    Michael Kay - 2009-12-07

    Yes, this is confirmed as a bug. I've raised a patch on the 9.2 branch and have submitted a new test to the W3C XQuery Update test suite.

    Thanks for reporting it: but I'd be grateful if in future you raise problems first via the saxon-help mailing list or forum. I try to keep this tracker for confirmed bugs only, to avoid it becoming filled with spurious user queries. Also, if a bug isn't assigned to me, I don't get any notification - I only spotted this one by chance.

     
  • Michael Kay

    Michael Kay - 2010-01-27

    Fixed in 9.2.0.5

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks