View Single Post
  #2 (permalink)  
Old March 6th, 2009, 10:42 AM
Martin Honnen Martin Honnen is offline
Friend of Wrox
Points: 6,676, Level: 34
Points: 6,676, Level: 34 Points: 6,676, Level: 34 Points: 6,676, Level: 34
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2007
Location: Germany
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
Default

First of all I would not choose XHTML 1.1 on the web as you are supposed to serve it as application/xhtml+xml which IE does not support at all.
Choose HTML 4 or XHTML 1.0.
The validation problem you have is because ASP.NET returns empty elements with the proper XML syntax (e.g. <link ... />) while you have included an HTML doctype. With HTML 4 you would need e.g. <link ...>.
So one way to solve the validation problem should be to use an XHTML 1.0 doctype e.g.
Code:
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog