Adding XSL-FO intellisense to Visual Studio 2010

Detailed steps on how to add XSL-FO intellisense in Visual Studio.

Visual Studio uses the XSL-FO Schema to enable intellisense in the XML/XSLT editor.

  1. Find and download the XSL-FO schema file online (fo.xsd). Try here or here
  2. Open it in notepad for editing.
  3. Remove lines from 5 to 9 regarding the <xs:annotation> tag. This tag causes an error in Visual Studio.
  4. Copy the xsd file to: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Xml\Schemas (or where your VS is installed)

Now open the XML/XSLT file you want to have intellisense on Visual Studio and check if it’s working. If it’s not working, try the following:

Open fo.xsd in Visual Studio and check if VS reports any problem in the file. Now open the XML/XSLT file again, go to Properties (Alt+Enter or F4) and click on Schemas or click on menu XML/Schemas… Find the fo.xsd row, remove it and add it again. Then make sure it’s selected to ‘Use this schema’.

XML Schemas window
Advertisements

One thought on “Adding XSL-FO intellisense to Visual Studio 2010

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s