So why are you using a .jspx file in the first place? The XML form of
JSP is not meant for hand coding, but for pages automatically generated by code. The format is too strict, as you have discovered.
Just use normal jsp format, not jspx document format.