[H-GEN] any vim gurus in the house
Sarah Hollings
sarah at humanfactors.uq.edu.au
Sun Aug 3 02:29:28 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
Trying to get some vim magic happening while I wade thru this xml stuff.
The vi XML mode is great, but I want to get some error message
trapping from my XSLT transformations using sablotron.
btw for any xml ppl the xsl transform uses a sablotron extension
exsl:document to spit out a number of result .html files, not just the
.pm file. the problem is not an xml problem its vi problem.
Sablotron errors look like this (run from my makefile):
sez at gargrevarr:~/kchf/lepsti/xml$ make
Error [code:2] [URI:file:/home/sez/kchf/lepsti/xml/genpage.xslt] [line:39]
XML parser error 7: mismatched tag
make: *** [pagelist.pm] Error 2
...and here's a couple of lines from my vimrc:
set efm=%EError\ [code:%n]\ [URI:file:%f]\ [line:%l],%C%m,%-Zmake:\ %m
set makeprg=make\ -s
After I read this:
http://vim.sourceforge.net/htmldoc/quickfix.html#errorformat
...and here's the makefile:
============ 8< ===================================================
sez at gargrevarr:~/kchf/lepsti/xml$ cat Makefile
# $Id: Makefile,v 1.1 2003/08/03 06:21:43 sez Exp $
# Survey generation makefile
all: pagelist.pm
pagelist.pm: survey.xml genpage.xslt
sabcmd genpage.xslt survey.xml pagelist.pm
clean:
rm -f *.html
check:
check.pl survey.xml
.PHONY: all clean check
============ 8< ===================================================
vim doesnt report any problems parsing the commands but when I run :make
it puts out the following at the bottom of the vim window:
:!make -s 2>&1| tee /tmp/v892797/2
Error [code:2] [URI:file:/home/sez/kchf/lepsti/xml/genpage.xslt] [line:39]
XML parser error 7: mismatched tag
make: *** [pagelist.pm] Error 2
(1 of 3): Error [code:2]
[URI:file:/home/sez/kchf/lepsti/xml/genpage.xslt] [line:39]
Hit ENTER or type command to continue
and :cn doesnt work. *pout*
Any ideas?
--
Sarah Hollings IT Manager
sarah at humanfactors.uq.edu.au The ARC Key Centre
Ph +61 7 33656080 for Human Factors and
Mb +61 416 045401 Applied Cognitive Psychology
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'. See http://www.humbug.org.au/
More information about the General
mailing list