Wednesday, September 30, 2009

Change Secondary Schema to IE7 for SharePoint Designer 2007

Error:- "In Internet Explorer 6.0 the tag "" is not permitted.

In SharePoint Designer 2007, we need to change the Secondary Schema to IE7 so that certain tags would render without any errors.

On the machine where SharePoint Designer 2007 is installed:
1.
Browse to %SystemDrive%\Program Files\Common Files\Microsoft Shared\OFFICE12\SCHEMAS\HTML

2. Copy the IE6_0.XSD and then rename the copied file to IE7_0.XSD
3. Open the IE7_0.XSD file using Notepad or Visual Studio and edit the following lines:
<-- xsd:schema color="#ff0000" targetnamespace="'http://schemas.microsoft.com/intellisense/<--font" version="1.0"><--xsd:schema color="#ff0000" targetnamespace="'http://schemas.microsoft.com/intellisense/<-- 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"
vs:SuccinctFriendlyName="Internet Explorer 7">
Note: the DOM reference for client side IntelliSense (vs:clientom=”ie6_0dom.tlb) remains the same.
Save and close the file.

Next, open your registry and browse to:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Common\Schemas\] Note: This is on 32bit version machines

If you are using Windows Server 2008, 64bit machine
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Common\Schemas

Create a new key and name it ie7_0.xsd and then create the following string values:
Value Name:-
Abbrev Name
Value Data:- IE7
Value Name:- File
Value Data:- html\\ie7_0.xsd
Value Name:- Friendly Name
Value Data:- Internet Explorer 7.0
Value Name:- URI
Value Data:- 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.

4 comments:

Anonymous said...

dude that worked

gemangeert said...

did all you described, do not see ie7 in designer, searching for ie6 shows a lot of other places in registry, have no idea where i have to add it, working on windows 7

Parmi said...

Hi gemangeert,

I am not sure if windows 7 comes with IE7 or IE8. may be in windows 7 its different registry hive.

dlgross said...

It looks like you copied most of this from http://mindsharpblogs.com/kathy/archive/2007/01/05/1457.html, when you do this you should state this and give the original author credit.