Add XSLT 2 schema in Visual Studio 2010 for intellisense

I would like to add an XSLT 2 schema in Visual Studio 2010 to provide intellisense. I added the schema to C: \ Program Files \ Microsoft Visual Studio 10.0 \ Xml \ Schemas (deleting the XSLT 1 schema), but to no avail. The diagram was apparently analyzed by Visual Studio, since I can hover over the namespace declaration in the stylesheet (xmlns: xsl = "http://www.w3.org/1999/XSL/Transform") and see the comments The new scheme, however, intellisense still refers to the implementation of XSLT 1. For example, the <xsl: function /> element has a warning that the function "xsl: function is not yet available."

Do I need to register a scheme somehow? Any suggestions are welcome.

+3
source share
1 answer

It should work. If there is import in the XSLT 2.0 schema, remove the attributes schemaLocation. Do you get any errors related to the circuit?

0
source

Source: https://habr.com/ru/post/1745082/


All Articles