[This post is based partly on Mikhail Arkhipov’s blog post:- http://blogs.msdn.com/mikhailarkhipov/archive/2006/02/01/522614.aspx ]
One of the great things about SharePoint Designer 2007 is the ability to add different validation schemas during editing Web pages, specifically for the IntelliSense feature we all find so helpful. But, SharePoint Designer 2007 falls short of including IE7 in the list of default schemas. The Preview in Browser option will automatically detect if you have IE7 installed, but the validation will not. But, the good news is you can add it to the validation list. Here’s how.
[Note: make the following changes at your own discretion]
On the machine where SharePoint Designer 2007 is installed:
- Browse to %SystemDrive%\Program Files\Common Files\Microsoft Shared\OFFICE12\SCHEMAS\HTML
- Copy the IE6_0.XSD and then rename the copied file to IE7_0.XSD
- Open the IE7_0.XSD file using Notepad or Visual Studio and edit the following lines:
<xsd:schema version="1.0"
targetNamespace='http://schemas.microsoft.com/intellisense/ie7'
elementFormDefault='qualified'
xmlns='http://schemas.microsoft.com/intellisense/ie7'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:vs='http://schemas.microsoft.com/Visual-Studio-Intellisense'
xmlns:fp='http://schemas.microsoft.com/FrontPageScripting'
vs:clientom="ie6_0dom.tlb"
vs:ishtmlschema="true"
vs:isserverschema="false"
vs:htmlflavor="4.0"
vs:MultipleScriptLanguages="true"
vs:cssschema="CSS 2.1">
(Note, the DOM reference for client side IntelliSense (vs:clientom=”ie6_0dom.tlb) remains the same. See the above link for how to change the DOM).
Save and close the file.
Next, open your registry and browse to:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\Schemas\]
Create a new key and name it ie7_0.xsd and then create the following string values:
Value Name Value Data
Abbrev Name IE7
File html\\ie7_0.xsd
Friendly Name Internet Explorer 7.0
URI http://schemas.microsoft.com/intellisense/ie7
Now, restart SharePoint Designer 2007 and click on Tools > Page Editor Options… In the Secondary Schema drop down select Internet Explorer 7.0. Click OK.
Needs further testing, but at least this gets you part way there and you can see IE7 in the bottom task pane of the screen ;-)