469,133 Members | 1,413 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,133 developers. It's quick & easy.

XHTML and Framesets

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
Oct 13 '06 #1
1 8796
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...

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...?
Oct 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by x | last post: by
5 posts views Thread by Martin Franklin | last post: by
5 posts views Thread by terry | last post: by
4 posts views Thread by Pete | last post: by
4 posts views Thread by lashnjo | last post: by
2 posts views Thread by Ralph | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.