Bugs item #2828783, was opened at 2009-07-29 07:57 Message generated for change (Comment added) made by shcheklein You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=713730&aid=2828783&group_id=129076
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Update Language Group: Sedna (current) >Status: Closed >Resolution: Invalid Priority: 5 Private: No Submitted By: chun chen (goodluckfish) >Assigned to: Ivan Shcheklein (shcheklein) Summary: About namespace of insert node Initial Comment: On Sedna, when I insert a node with namespace as the same namespace of current document, the node will also has "xmlns" attribute. In my opinion, the node should not has this attribute. example: <?xml version="1.0" standalone="yes"?> <SCL xmlns="http://www.iec.ch/61850/2003/SCL"> <Header id="SHR" nameStructure="IEDName" toolID="EASY50"/> </SCL> XUpdate: declare namespace scl="http://www.iec.ch/61850/2003/SCL"; Update insert <Communication xmlns="http://www.iec.ch/61850/2003/SCL"><SubNetwork type="8-MMS" name="MMS"/></Communication> following doc('xx')/scl:SCL/scl:Header result: <?xml version="1.0" standalone="yes"?> <SCL xmlns="http://www.iec.ch/61850/2003/SCL"> <Header id="SHR" nameStructure="IEDName" toolID="EASY50"/> <Communication xmlns="http://www.iec.ch/61850/2003/SCL"><SubNetwork type="8-MMS" name="MMS"/></Communication> </SCL> expected: <?xml version="1.0" standalone="yes"?> <SCL xmlns="http://www.iec.ch/61850/2003/SCL"> <Header id="SHR" nameStructure="IEDName" toolID="EASY50"/> <Communication><SubNetwork type="8-MMS" name="MMS"/></Communication> </SCL> Is it a bug or I use a wrong xquery? ---------------------------------------------------------------------- >Comment By: Ivan Shcheklein (shcheklein) Date: 2009-07-29 09:56 Message: Seems, that the result is correct. It was inserted just as is. If you want to remove xmlns then try the following update statement: declare default element namespace "http://www.iec.ch/61850/2003/SCL"; update insert <Communication><SubNetwork type="8-MMS" name="MMS"/></Communication> following doc('xx')/SCL/Header Alternatively, you may perform namespace nomalazation at the application side. Since it's not a bug I close it. If you still have questions concerning XUpdate please use sedna discussion list. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=713730&aid=2828783&group_id=129076 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Sedna-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sedna-discussion
