Darn.. this forum does not seem to support the text I was pasting in. After the doctype declaration the tags gets rendered also. That is the main problem which I am trying to figure out a solution for
Jesus, here it is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html xmlns="http://www.w3.org/1999/xhtml">
I use a similar environment, and here is how I deal with this:
1.- Pages are .jspx.
3.- Pages begin with this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
... and end like this:
This works and also make MyEclipse autocomplete work.
Hope this helps
Thx alot! That does the trick...
Too bad I have to change this in a gazillion files :-) I will cope though.
After further investigation facelets still render duplicates of:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns="http://www.w3.org/1999/xhtml">
But that is of course better than duplicating the
<html>code... So it does in fact make my documents valid I guess.
Any way to make it take away the
The jsp:root element rendering fucks up browser rendering for Safari.
Has anybody got a solution to prevent jsp:root being rendered?
Why do you have jsp:root if you are using facelets?
Do not mix facelets with jsp in same page
Please read the whole post if you want to understand why I use jsp:root