XSLT Intellisense in Visual Studio 2008

I have an XML file that, in addition to it, the standard XML schema allows the use of XSLT.

I am including the correct namespace for XSLT (xmlns: xsl = "http://www.w3.org/1999/XSL/Transform"), however I am not getting Intellisense for XSLT when I start typing xsl: tags.

Can this be included? When I edit XSLT files, it works absolutely fine.

+4
source share
2 answers

The Xml editor supports the standard xsl intellisense, but it will strictly apply the scheme. Therefore, you first need to enter <xsl:stylesheet> and start adding children to it before you see any xsl options. This is because all other xsl elements must be children of an xsl: stylesheet element or other xsl element.

+2
source

XSLT Intellisense is a hidden feature of VS 2008. It must be activated by setting the registry key ( http://memoryleak.me.uk/2008/11/xslt-intellisense-in-visual-studio-2008.html ):

First, make sure you have the xslt.xsd file in C: \ Program Files \ Microsoft Visual Studio 9.0 \ Xml \ Schemas. If not, copy it from VS2005.

Then add a new string value to the registry named XsltIntellisense under HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\XmlEditor and set it to True . This will include some other nice features for standard tag completion material.

This hint came from http://www.tkachenko.com/blog/archives/000740.html

+1
source

All Articles