Bugs item #2828783, was opened at 2009-07-29 03:57
Message generated for change (Tracker Item Submitted) made by goodluckfish
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: chun chen (goodluckfish)
Assigned to: Nobody/Anonymous (nobody)
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?

----------------------------------------------------------------------

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

Reply via email to