diff --git a/syntax_checkers/xml.vim b/syntax_checkers/xml.vim index 0fd8c57d..55c0cdd3 100644 --- a/syntax_checkers/xml.vim +++ b/syntax_checkers/xml.vim @@ -26,7 +26,7 @@ endif function! SyntaxCheckers_xml_GetLocList() - let makeprg="xmllint --xinclude --noout --postvalid %" + let makeprg="xmllint --xinclude --noout --postvalid " . shellescape(expand("%:p")) let errorformat='%E%f:%l:\ error\ :\ %m, \%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m, \%W%f:%l:\ warning\ :\ %m, diff --git a/syntax_checkers/xslt.vim b/syntax_checkers/xslt.vim index fda2cad6..b9b3cac8 100644 --- a/syntax_checkers/xslt.vim +++ b/syntax_checkers/xslt.vim @@ -21,7 +21,7 @@ endif function! SyntaxCheckers_xslt_GetLocList() - let makeprg="xmllint --xinclude --noout --postvalid %" + let makeprg="xmllint --xinclude --noout --postvalid " . shellescape(expand("%:p")) let errorformat='%E%f:%l:\ error\ :\ %m, \%-G%f:%l:\ validity\ error\ :\ Validation\ failed:\ no\ DTD\ found\ %m, \%W%f:%l:\ warning\ :\ %m,