>absolutely incomprehensible

 Debating it here and now won't change it, since it is part of the REC and 
all Xerces can do is follow the REC. If you really want to argue for a 
change, the W3C has a public mailing list for the DOM -- but given that 
this is a DOM Level 2 method which has gone through industry review before 
being published and has been stable for MANY months, I think you have to 
resign yourself to the fact that it's perfectly "comprehensible" and just 
not what you expected.

(This issue can be, and was, argued both ways.... but the DOM WG concluded 
that it would generally do more harm to unintentially preserve "defaults" 
which aren't correct in the new document than to copy them across; if the 
user wasn't willing to accept _whatever_ default was appropriate for the 
specific document, s/he should have coded the attributes explicitly. There 
wasn't even enough disagreement on this point to make copy of default 
attributes an option on this method.)

If you need an import operation which copies all the attributes, that 
isn't hard: Write your own tree-copying code which does it your way. Since 
Xerces is open-source, you can copy our code directly into your own class 
and change it appropriately. Or you can probably find one off-the-shelf 
that has your preferred behavior.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies:
XML, XSL and more.  "may'ron DaroQbe'chugh vaj bIrIQbej" 
("Put down the squeezebox and nobody gets hurt.")


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to