.vimrc
function! XSLTransform()
silent !clear
wa
exe 3 ."wincmd w"
setl autoread
"setl autoread | execute "!xsltproc #2 #1 > output.xml"
"silent !xsltproc #2 #1 > output.xml
silent !xsltproc transformation.xsl input.xml > output.xml
wa
redraw!
endfunction
noremap ,t :call XSLTransform()
3 different Layouts for viewing
vim -O /tmp/input.xml /tmp/transformation.xsl /tmp/output.xml
vim -o -c "wincmd w|wincmd H" /tmp/input.xml /tmp/transformation.xsl /tmp/output.xml
vim -O -c "wincmd w|wincmd K|resize +3" /tmp/input.xml /tmp/transformation.xsl /tmp/output.xml
No comments:
Post a Comment