users@javaserverfaces-spec-public.java.net

[jsr344-experts mirror] [jsr344-experts] Re: facelets-processing jspx/xml CDATA handling

From: Leonardo Uribe <lu4242_at_gmail.com>
Date: Mon, 9 Jan 2012 15:29:15 -0500

Hi

Yes, on JSF 2.1 spec Appendix A 1.2.1.1 says this about process CDATA
sections (see Table 1-1):

CDATA sections

xhtml : passed through
xml : consumed
jspx : consumed

So, according to this report we need to fix jspx mode so it swallow
CDATA, but keep the content (swallow tag/keep?).

I agree this is a bug on the spec and we need to fix it to match the
desired. I'll create and commit the necessary patch on MyFaces.

I think the spec should be clear about at which point jspx
compatibility is maintained. Should the VDL be able to read jspx? Yes,
but what about jsp tags? For example jsp:include (note that is the
most frequent jsp tag used in jsf applications). Maybe there is a
"hole" here about how JSF spec should help to convert legacy
applications so they can use facelets vdl.

regards,

Leonardo Uribe