W3C home > Mailing lists > Public > www-validator-cvs@w3.org > March 2007

[Bug 4420] Get libxml2 to output error countext beyond 80 characters, or output

From: <bugzilla@wiggum.w3.org>
Date: Thu, 29 Mar 2007 06:05:22 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1HWnlC-0001TQ-0f@wiggum.w3.org>


           Summary: Get libxml2 to output error countext beyond 80
                    characters, or output
           Product: Validator
           Version: HEAD
          Platform: All
               URL: http://bugzilla.gnome.org/show_bug.cgi?id=424017
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: check
        AssignedTo: ot@w3.org
        ReportedBy: ot@w3.org
         QAContact: www-validator-cvs@w3.org

libxml2 (and thus XML::LibXML) has a hardcoded limit of 80 columns (old skool!)
for its xml parsing errors, hence making it almost impossible to know the exact
context of the error. 

    /* search backwards for beginning-of-line maximum 80 characters */

I have a (sad) workaround in the validator for that issue, but ideally, libxml
would fix it by either:
* having an option to output the whole list
* having an option (similar to $parser->line_numbers(1)) to output the column
number too

The latter would be best, but either would do.

Recording this as a bug in the validator, so that we don't let the workaround
sit forever.
Received on Thursday, 29 March 2007 06:05:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:21 UTC