sponsor Vim development Vim logo Vim Book Ad

onsgmls.vim : A compiler plugin for the onsgmls (or nsgmls) SGML/XML validator

 script karma  Rating 2/2, Downloaded by 485    Comments, bugs, improvements  Vim wiki

created by
Robert Rowsome
 
script type
utility
 
description
Lets you validate XML and SGML documents with onsgmls (from the OpenSP suite) or nsgmls (from James Clark's SP suite).  According to Vim's documentation, "The idea is to save the error messages from the compiler in a file and use Vim to jump to the errors one by one.  You can examine each problem and fix it, without having to remember all the error messages."
  
 
install details
You must have either the onsgmls or nsgmls parser.  The OpenSP suite contains the onsgmls parser, and can be downloaded here: http://sourceforge.net/projects/openjade/

copy the plugin file to your compiler directory (usually ~/.vim/compiler/).  If you use nsgmls, just replace all the instances of "onsgmls" in the file with "nsgmls" (and rename the file to nsgmls.vim)

To use it, open an xml or sgml file and type ":compiler onsgmls", followed by ":make".  If there are errors, you can display all at the bottom of the screen with ":cw".  From there, you can hit Enter on an error (or double click it in Gvim) to navigate to it.  

For more info on using  quickfix commands, type ":help quickfix"

Improvements and fixes are appreciated and encouraged.  Just email me.  Thanks.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
onsgmls.vim 0.2 2012-08-16 7.0 Robert Rowsome Updated my contact info
onsgmls.vim 0.1 2004-05-10 6.0 Robert Rowsome Initial upload
ip used for rating: 54.196.195.207

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo