Steven
Yes this is exactly the problem. It seems that some of the template
Jscript code also refers to these entries as hardcoded 0,1,2 so I
imagine adding my own would causes all sorts of trouble.
For example c:\program files\visual
studio\vc#\vc#wizards\1033\common.js contains
function AddDefaultTargetSchemaToWizard(selProj)
{
var prjTargetSchema =
selProj.Properties("DefaultTargetSchema").Value;
// 0 = IE3/Nav4
// 1 = IE5
// 2 = Nav4
if(prjTargetSchema == 0)
{
wizard.AddSymbol("DEFAULT_TARGET_SCHEMA",
"http://schemas.microsoft.com/intellisense/ie3-2nav3-0");
}
else if( prjTargetSchema == 2)
{
wizard.AddSymbol("DEFAULT_TARGET_SCHEMA",
"http://schemas.microsoft.com/intellisense/nav4-0");
}
else
{
wizard.AddSymbol("DEFAULT_TARGET_SCHEMA",
"http://schemas.microsoft.com/intellisense/ie5");
}
}
and would need extending to handle a 4th template. Elsewhere in the
code the wizards seem to lookup the "name" in the droplist and return
the 0,1,2 for this method
Cliff
v-******@online.microsoft.com (Steven Cheng[MSFT]) wrote in message news:<Xc**************@cpmsftngxa10.phx.gbl>...
Hi Cliff,
As for the problem on adding a new custom html targetSchema, I've searched
the MSDN and it seems that we have to first build our own Xsd files or tlb
and put them in the
[Disk]\Program Files\Microsoft Visual Studio .NET
2003\Common7\Packages\schemas\html folder
Here is the certain document in MSDN:
#HTML and XML Schema Extensibility
http://msdn.microsoft.com/library/en...kupLanguageSch
emaExtensibility.asp?frame=true
I've tested regarding the above document and found that after adding a new
xsd file, the new targetSchema value will only appear in the individual
page's "targetSchema" property rather than in the whole project's default
targetSchema dropdownlist. Is this also the problem you encountered? I'm
now consulting some further experts on this and will update you as soon as
I got any new findings. Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx