comparison pyink/domview.py @ 1294:082fff7e9604

merge
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 15 Jan 2011 23:07:29 +0800
parents a3e04b3f2a8c 99de83340782
children 71118bff7d61
comparison
equal deleted inserted replaced
1293:10bffaffef82 1294:082fff7e9604
769 for src_child in src_group.childList(): 769 for src_child in src_group.childList():
770 src_child_id = src_child.getAttribute('id') 770 src_child_id = src_child.getAttribute('id')
771 dst_child_id = self.new_id() 771 dst_child_id = self.new_id()
772 772
773 dst_child = doc.createElement('svg:use') 773 dst_child = doc.createElement('svg:use')
774 dst_child.setAttribute('id', dst_child_id)
774 dst_child.setAttribute('xlink:href', '#' + src_child_id) 775 dst_child.setAttribute('xlink:href', '#' + src_child_id)
775 dst_child.setAttribute('id', dst_child_id) 776 dst_child.setAttribute('ns0:duplicate-src', src_child_id)
776 dst_group.append(child) 777 dst_group.append(child)
777 pass 778 pass
778 pass 779 pass
779 pass 780 pass
780 781