jsf 2 ui:include .html give error “XML Parsing Error: no element found”

strugi

New Member
I include a header.html (not .xhtml) to my page, but when I preview my page, it give me error "XML Parsing Error: no element found". I do know that it is the tag no properly closed issue, but since my header page is a html file, not a xhtml file, it shouldn't must close the tag, am I right?
If I do close all the meta tag in my header.html, my page is working fine, but I wish to know that is it a must close all the tag properly in html file if I include them in jsf2, thanks.header.html\[code\]<!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>Header</title> <meta name="description" content=""> </head> <body>header content</body></html>\[/code\]welcome1.xhtml\[code\]<ui:include src="http://stackoverflow.com/questions/15825654/header.html" /><p>welcome page</p>\[/code\]
 
Back
Top