Bug#419625: libxml-libxml-perl: complete_attributes (from XML::LibXML::Parser) is disabled by default

Chris Butler chrisb at debian.org
Tue Jul 26 10:22:51 UTC 2011


On Tue, Apr 17, 2007 at 01:50:11AM +0200, Vincent Lefevre wrote:
> The XML::LibXML::Parser(3pm) man page says:
> 
>        complete_attributes
>              $parser->complete_attributes(1);
> 
>            Complete the elements attributes lists with the ones defaulted from
>            the DTDs.  By default, this option is enabled.
> 
> But unless I use
> 
>   $parser->complete_attributes(1);
> 
> in my Perl script, the elements are not completed with the default
> attributes (even if I turn validation on). So, it seems that
> complete_attributes is disabled by default and the man page is
> incorrect. Or this is a bug in the module itself...

The manual page in the current version states:

    complete_attributes
    /parser, reader/

    create default DTD attributes; possible values are 0 and 1

Which, while not necessarily much better, at least does not give a default;
implying that the required value must be set explicitly. Therefore I reckon
this bug can probably be closed.

-- 
Chris Butler <chrisb at debian.org>
  GnuPG Key ID: 4096R/49E3ACD3





More information about the pkg-perl-maintainers mailing list