Project default HTML Schema

C

CliffH

How do I get a HTML Schema that I have designed registered in such a
way that it appears in the Project Default Schema dropdown list.

I know I can change it for individual pages, but I want MY schema to
appear in the list for the entire project along with the default 3
that are already there

Cliff
 
S

Steven Cheng[MSFT]

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-us/vsintro7/html/vxoriMarkupLanguageSch
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
 
C

CliffH

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
 
S

Steven Cheng[MSFT]

Hi Cliff,

Thanks for your response. Yes, after further consulting from some experts ,
they also agreed that this dropdownlist behavior is controled by VS.NET and
is hard coded in the IDE's code. I'm afraid currently we can only add our
custom schema items in individual page's property window's targetSchema
select list. 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
 

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
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top