Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot access runtime errors #63

Open
jakiestfu opened this issue Oct 4, 2017 · 2 comments
Open

Cannot access runtime errors #63

jakiestfu opened this issue Oct 4, 2017 · 2 comments

Comments

@jakiestfu
Copy link

When applying a document to a stylesheet, there are runtime errors reported in the console but it is not reflected in any error object.

runtime error: element value-of
Variable 'foobar' has not been declared.
xmlXPathCompiledEval: evaluation failed
runtime error: element value-of
XPath evaluation returned no result.
@albanm
Copy link
Owner

albanm commented Oct 5, 2017

It seems that the original libxslt library doesn't consider these errors as a real failure, a document is still produced as a result of the transformation. So it is more warnings than errors.

I don't know if there is an option to force failure on this kind of error.

@rainabba
Copy link

Any way to expose those in the results of apply(), even if not qualified as errors?

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

No branches or pull requests

3 participants