helix84 - 2011-08-17

On a second look, xsl:if was the parent tag of xsl:for-each, so this message was telling me that I should have closed <xsl:if> with </xsl:if> when it encountered unexpected </xsl:for-each>.

It would make the exception message more helpful if it also said '...but it was terminated with end-tag "<xsl:for-each>" instead.' I know it's redundant to say so becuse when I look at the file position indicated I should see the problem, but I didn't. This would be more helpful.