I have the following problem, We have web content manager (WCM) running at remote host,
which is responsible for generating header and footer HTML files.
i.e. header.html
, footer.html
.
The HTML files are not properly formatted syntax wise,
WCM generated files have
- Space character (
) ๐กข it is not allowed in XHTML. - Non Closing break line (
<br>
) tags ๐กข it is invalid in XHTML.
So the WCM generated HTML pages might not be valid XHTML pages.
We are implementing some of our applications in JSF, where we need to include the WCM generated header and footer files. Can we include the non-formatted HTML files into our XHTML files?
commonTemplate.xhtml
<html>
<head>
..........;
</head>
<body>
<ui:include src="remote_host/header.html" />
<ui:insert name="commonBodyContent" />
<ui:include src="remote_host/footer.html" />
</body>
</html>