for my $attr ($attrs->getValues) {
next if ($attr->getName =~ /^xmlns(:|$)/);
- my ($nsuri, $prefix, $tag) = $nsup->process_attribute_name($attr->getName);
- $id = $attr->getValue;
- $child->removeAttribute($attr->getName) if ($clean);
+ my ($nsuri, undef, $tag) = $nsup->process_attribute_name($attr->getName);
+ if ($nsuri eq 'http://template.sesse.net/' && $tag eq 'id') {
+ $id = $attr->getValue;
+ $child->removeAttribute($attr->getName) if ($clean);
+ }
}
}