On October 13, 2006 Mark Rae wrote Hi,
Firstly, I have not the slightest intention of using framesets - the reason
for this post is merely to ask for assistance in furthering my understanding
of XHTML.
I was under the impression that XHTML fully supports framesets, hence the
Frameset document type. Therefore, can anyone please tell me why the
following markup doesn't validate correctly in VS.NET 2005?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Test Frameset</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />
<meta name="CODE_LANGUAGE" content="C#" />
<meta name="vs_defaultClientScript" content="JavaScript"/>
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
</head>
<frameset rows="100%">
<frame id="fraContent" />
</frameset>
</html>
There's a red IntelliSense underline beneath the <htmltag which says:
Cannot switch views: Validation (XHTML 1.0 Transitional): Element 'body'
occurs too few times.
I was under the impression that either a <framesetor a <bodytag were
permitted, but not both...
There's a red IntelliSense line beneath the <framesettag which says:
Validation (XHTML 1.0 Transitional): Element 'frameset' is not supported.
There's a red IntelliSense line beneath the <frametag which says:
Validation (XHTML 1.0 Transitional): Element 'frame' is not supported.
However, according to http://validator.w3.org/, the above is perfectly
valid.
Can anyone please tell me why VS.NET 2005 is saying that the markup isn't
valid, if there's anything I can do about it, or if I can safely ignore the
validation errors.
Any assistance gratefully received.
Mark
He then answered his own questions by writing:
D'oh! Apologies, group... :-)
Fairly obviously, changing the Target Schema for Validation from XHTML 1.0
Transitional to XTHML Frameset sorted the IntelliSense out... sigh...
AAMOI, is it possible to default set the Target Schema for Validation at
page level, or is it global across VS.NET 2005...?
However it is not obvious to me .
In addition, google can find not other reference mentioning the error message "Element 'frameset' is not supported." I would appreciate any assistance in this area. Since when is it not supported? I built a number of pages with this style in VS 2003.