If you have an HTML page like:

```html
  1 <!DOCTYPE html>
  2 <html>
  3 <head><title>monkey</title></head>
  4 <body>
  5     <script src="JSXTransformer.js"></script>
  6     <script type="text/jsx">
  7     /** @jsx React.DOM */
  8     var link = <a href={} />;
  9     </script>
 10 </body>
 11 </html>
```

then esprima will report an error on line 2 of the script, but that's line 8 of the original file. Since it's seemingly impractical to report the real line number, the next best alternative is to show the message along with the problematic line of code, along the lines of:

```
Uncaught Error: Parse Error: Line 2: XJS attributes must only be assigned a non-empty expression
  at test.html, line 2

    var link = <a href={} />;
                        ^
```