Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

XSLT checker to use xsltproc #1871

Open
MasseR opened this issue Sep 13, 2016 · 1 comment
Open

XSLT checker to use xsltproc #1871

MasseR opened this issue Sep 13, 2016 · 1 comment

Comments

@MasseR
Copy link

MasseR commented Sep 13, 2016

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
Copy link
Collaborator

lcd047 commented Sep 13, 2016

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants