[Bug 5785] New: XTML-MP validation against xhtml-mobile11.dtd totally hosed - brings up false line #s

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

           Summary: XTML-MP validation against xhtml-mobile11.dtd totally
                    hosed - brings up false line #s
           Product: Validator
           Version: HEAD
          Platform: PC
               URL: http://www.citycarshare.org/
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: check
        AssignedTo: dave.null@w3.org
        ReportedBy: bryce2@obviously.com
         QAContact: www-validator-cvs@w3.org


Validate this:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN"
"http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>test</title>
</head>
<body>
<p>test</p>
</body>
</html>

You'll get 10 errors with line numbers that are not even in the source file. 
It seems to be having some issues with the DTD, and falsely blaming the input
source code.  So this is really two bug report: improper line numbers, and a
parsing issue with the 1.1 DTD.

----------------------

Replace the DTD with 1.0 or 1.2 and it works fine:

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN"
"http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 23 June 2008 04:10:56 UTC