
However, these error messages are incorrect. The real problem is that the
attribute has no closing quote. The correct message should have been
“ expected.
Instead, the parser thinks that the attribute continues until the end of the
line. When it reaches the end of the line, the parser is confused and it
misses the
p closing tag.
As you can see, it’s important to take error messages with a pinch of salt.
XSLT Common Errors
When writing XSLT style sheets, it is very common to forget to close HTML
elements. However, in XML, a P element must have an opening and a clos-
ing tag.
The following line is guaranteed to confuse the parser:
<xsl:template match=”p”> ...