Normalized length of attribute value literal must not exceed LITLEN (...); length was ...

Cause:

This error almost always means that you've forgotten a closing quote on an attribute value, meaning that everything following that point might be interpreted as part of the attribute's value. "joe.gif" line.

Example:

Good
<img src="fred.gif>
<!-- 50 lines of stuff -->
<img src="joe.gif">
Good
<img src="fred.gif">
<!-- 50 lines of stuff -->
<img src="joe.gif">

Solution:

Close the quote.

References: