« How to cancel the CreditInform service | Main | Valve Map Format Utility Library v1.0 Released »
Sunday
Jan242010

Enable Visual Studio Intellisense for DocBook

You can easily plug in XML Schemas to enable Intellisense for certain XML namespaces and file extensions. DocBook includes all of the necessary schemas, so all that's required is a schema catalog.

To make it a little easier, I put together a ZIP file that contains everything you need.

Just unzip it to one of the following locations, depending on your version of Visual Studio:

  • Visual Studio 2005
    C:\Program Files\Visual Studio 8\Xml\Schemas
  • Visual Studio 2008
    C:\Program Files\Visual Studio 9.0\Xml\Schemas
  • Visual Studio 2010
    C:\Program Files\Visual Studio 10.0\Xml\Schemas

DocBook Intellisense will be enabled for files with the docbook extension. If your solution contains DocBook files, you can simply right-click and choose “Open With…” then select “XML Editor”.

Enjoy!

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments (7)

Uuh...
That's... fast!

Thanks a lot!

January 26, 2010 | Unregistered CommenterStefan

You're welcome! Apologies for not updating it for 5.0 sooner. I haven't used DocBook in a while, so I wasn't aware that I new version had been released.

January 26, 2010 | Registered CommenterDavid Brown

Well, in fact I have to apologise; after having a closer look at it, it became pretty clear that I could have done it easily by myself. Sorry I let others do the dirty work.

And therefore thanks again!

January 27, 2010 | Unregistered CommenterStefan

Nice post, I'm also interested in using the .NET toolchain to process docbook documents. For now I use only Java tools (ANT, Xalan, Eclipse, etc). Could you tell me what do you use to process your docbook?

May 27, 2010 | Unregistered CommenterKris Hermans

Kris,

I haven't used DocBook in a while, so my memory is probably a little fuzzy at this point. I used Visual Studio to write the DocBook files, but I don't have any kind of project system for them, unfortunately. To transform them, I used xsltproc, which I remember being a pain to set up on Windows because it had its dependencies strung out all over the place. Sorry, but I don't remember where exactly I got them. Later on, I wrote a simple .NET app called XTransform to replace xsltproc, but I never got around to testing it because the project I was writing documentation for was cut. I think I still have XTransform on an old backup drive and could send you a copy if you're interested.

May 27, 2010 | Registered CommenterDavid Brown

David,

thanks, I'm really interested in the XTransform tool. I hope to get this thing running, so that you could publish Docbook projects using MSBuild integrated in VS. Another path to explore may be nxslt3, but I haven't tried that one either.

thanks a lot,

May 27, 2010 | Unregistered CommenterKris Hermans

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>