issue #36: handle ns declaration used by same tag

Fix for #36.