XHTML and Framesets

M

Mark Rae

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 <html> tag which says:
Cannot switch views: Validation (XHTML 1.0 Transitional): Element 'body'
occurs too few times.
I was under the impression that either a <frameset> or a <body> tag were
permitted, but not both...

There's a red IntelliSense line beneath the <frameset> tag which says:
Validation (XHTML 1.0 Transitional): Element 'frameset' is not supported.
There's a red IntelliSense line beneath the <frame> tag 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
 
M

Mark Rae

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...?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top