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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4420

           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. 

e.g:
http://www.opensource.apple.com/darwinsource/WWDC2003/libxml2-3/libxml2/error.c
    /* 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