Bug#250679: [xml/sgml-pkgs] Bug#250679: libxml2-utils: xmllint --nsclean doesn't work

Mike Hommey Mike Hommey <mh@glandium.org>, 250679@bugs.debian.org
Tue, 25 May 2004 15:21:21 +0900


Victor Porton wrote:
> I don't understand what do you mean by redundant.
> 
> For example, why these in my understanding redundant namespaces are not
> removed?
> 
> $ echo '<x xmlns:a="x-a:0" xmlns:b="x-a:0"/>' | xmllint --nsclean -
> <?xml version="1.0"?>
> <x xmlns:a="x-a:0" xmlns:b="x-a:0"/>

This is not a redundant namespace declaration. This is  :

$ echo '<x xmlns:a="x"><y xmlns:a="x"/></x>' | xmllint --nsclean -
<?xml version="1.0"?>
<x xmlns:a="x"><y/></x>