Here is the start of my JSF file:
you could also add "urn:import:<url>"
"urn:import:<url>"
example: xmlns:d="urn:import:com.mypackage.mylovelycode"
xmlns:d="urn:import:com.mypackage.mylovelycode"
I had the same issue... but in my case, the problem was that by mistake I saved file with extension ".xml". Changing it into ".xhtml" solved the problem