<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>10076</bug_id>
          
          <creation_ts>2010-07-04 08:33:32 +0000</creation_ts>
          <short_desc>Improve error location info for XML, JSON etc outputs</short_desc>
          <delta_ts>2013-02-14 17:41:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>1.0</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>9933</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ville Skyttä">ville.skytta</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>lavacochesmadrid</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>36566</commentid>
    <comment_count>0</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2010-07-04 08:33:32 +0000</bug_when>
    <thetext>Bug 9933 takes care of this for HTML output, this is about doing it also in XML, JSON etc outputs.

+++ This bug was initially created as a clone of Bug #9933 +++

The info given by validator about error locations should be improved as the errors may not occur in the doc to be validated, they may be elsewhere.  For example validate the following XHTML MP 1.2 doc with xmllint (libxml):

&lt;!DOCTYPE html PUBLIC &quot;-//WAPFORUM//DTD XHTML Mobile 1.2//EN&quot; 
&quot;http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd&quot;&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;
Plain Text
&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;p&gt;
This is
&lt;br/&gt;
A simple sample of XHTML MP
&lt;/p&gt;
&lt;div style=&quot;text-align:right&quot;&gt;
Hello, world
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;



$ xmllint --noout --postvalid t.xhtml 
http://www.openmobilealliance.org/tech/DTD/xhtmlmp12-form-1.mod:18: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0x92 0x53 0x20 0x52
    OR ITS AFFILIATES REGARDING ANY OF THE IPR&amp;#65533;S REPRESENTED ON THE OMA
                                              ^
http://www.openmobilealliance.org/tech/DTD/xhtmlmp12-form-1.mod:69: parser warning : PEReference: %form.element; not found
&lt;![%form.element;[
                 ^
[...]

$ HEAD http://www.openmobilealliance.org/tech/DTD/xhtmlmp12-form-1.mod
200 OK
Date: Tue, 15 Jun 2010 16:37:46 GMT
Accept-Ranges: bytes
ETag: &quot;4cbc61cb759c71:1f3d&quot;
Server: Microsoft-IIS/6.0
Content-Length: 9885
Content-Type: application/octet-stream
Last-Modified: Mon, 26 Feb 2007 15:01:52 GMT
Client-Date: Tue, 15 Jun 2010 16:37:47 GMT
Client-Peer: 195.238.226.77:80
Client-Response-Num: 1
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>