tksk / jing-trang

Automatically exported from code.google.com/p/jing-trang
0 stars 0 forks source link

Poor error report from Jing. George has a fix #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Schema
 <element name="tr:result">
     <optional>
       <attribute name="tn">
         <data type="nonNegativeInteger"/>
       </attribute>
     </optional>

     <attribute name="tr:outcome">
       <data type="token">
         <param name="pattern">pass|fail|abort</param>
       </data>
     </attribute>

Instance

 <result tn="001" outcome="pass">
        <testIdent>absolute value, positive</testIdent>
        <expected>10.3</expected>
        <actual>10.3</actual>
     </result>

Error (looks like it's from Jing)
SystemID: /sgml/test/fxsl/op.xml
Engine name: Jing
Severity: error
Description: attribute "outcome" not allowed here; expected attribute "outcome"
Start location: 25:39

Certainly confusing.

What is the expected output?
  I'd hope for a clear error report

 What do you see instead?
   Asking me to use what is already there!

What version of the product are you using? 
On what operating system?
Latest binary from google code on Linux

Please provide any additional information below.

Original issue reported on code.google.com by dave.pawson@gmail.com on 17 Mar 2010 at 8:14

GoogleCodeExporter commented 9 years ago
Thanks Dave for reporting this problem. I will commit the fix shortly.

Original comment by georgebina76 on 17 Mar 2010 at 12:43

GoogleCodeExporter commented 9 years ago
Fix plus test case in r2341.

Original comment by georgebina76 on 17 Mar 2010 at 1:52