Have previously asked this elsewhere (http://social.msdn.microsoft.com/Forums/vstudio/en-US/dcc09022-c102-43ea-a354-a43ebf9fccac/validation-schemas-in-vs-2005?forum=tfsgeneral#e315794c-c85a-416e-bbd5-8a1d4a1f8b41) but been told to re-post here.
I'm Using Visual Studio 2005 (yes I know ancient)
Specifically:
Microsoft Visual Studio 2005
Version 8.0.50727.762 (SP.050727-7600)
And am looking to introduce schema.org microdata format tags to add additional information for search engines.
My problem though is that VS2005 won't compile the pages - complaining of errors e.g.
"Validation (Internet Explorer 6): Attribute 'itemscope' is not a valid attribute of element 'div'."
Pre schema.org notation:
<div id="centerdiv"><div id="detailsmain"><asp:HiddenField ID="hidAssetID" runat="server" /><!-- Page content --></div></div>
Post schema.org microdata:
<div id="centerdiv"><div id="detailsmain" itemscope itemtype="http://schema.org/Photograph"><asp:HiddenField ID="hidAssetID" runat="server" /><!-- Page content --></div></div>
The options for validation in my VS are:
- Internet Explorer 6.0
- Internet Explorer 3.02 / Netscape Navigator 3.0
- Netscape Navigator 4.0
- HTML 4.01
- XHTML 1.0 Transitional
- XHTML 1.0 Frameset
- XHTML 1.1
I've read that such things can be updated in VS 2010 by adding SP1 - but how do I add them in 2005 ?
Further from my previous instance of this question (link) I have found out how to install new validation schemas with a bit of a hack:
Instaleld it into the VIsual Studio 9 folder instead of 9, and then re-wrote the REG file to add the key into VS8.0 section and as Schema 21 instead of 23.
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\8.0\Packages\{1B437D20-F8FE-11D2-A6AE-00104BCC7269}\Schemas\Schema 21] "File"="html\\html_5.xsd" "Friendly Name"="HTML 5" "URI"="http://schemas.microsoft.com/intellisense/html-5"
Which adds HTML5 to the list of validation options. However this raises errors of it's own as I am not writing HTML5.
So where can I get a schema for HTML4 + microdata properties etc ?