vim-syntastic / syntastic

Syntax checking hacks for vim
Do What The F*ck You Want To Public License
11.3k stars 1.14k forks source link

XSLT checker to use xsltproc #1871

Open MasseR opened 7 years ago

MasseR commented 7 years ago

Consider changing xslt checker to use xsltproc instead of xmllint.

Example output:

compilation error: file file.xsl line 21 element alue-of
xsltStylePreCompute: unknown xsl:alue-of

It also returns xmllint style errors for xml errors:

file.xsl:21: parser error : expected '>'
                <fo><xsl:value-of select="$asd" /></foo>

Invoked with xsltproc file.xsl

lcd047 commented 7 years ago

Consider changing xslt checker to use xsltproc instead of xmllint.

Working PRs are welcome. I believe I did look at xsltproc sources a while ago, and I gave up. If I recall correctly the possible error messages are essentially too hostile to parsing.

It also returns xmllint style errors for xml errors:

This is to be expected, they are both using the same library for validation.