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

feat: check stylesheet, query, schematron attributes #1364

Merged
merged 11 commits into from
Mar 9, 2021

Conversation

AirQuick
Copy link
Member

@AirQuick AirQuick commented Mar 2, 2021

When a wrong test type is specified, its error message is cryptic.

For example, specifying XSLT test type with a Schematron XSpec file:

C:\xspec>bin\xspec.bat -t tutorial\schematron\demo-01.xspec
Creating Test Stylesheet...


Running Tests...
Error on line 6 column 25 of demo-01-compiled.xsl:
  XTSE0210: The stylesheet module includes/imports itself directly or indirectly
...

This pull request errors out a bit more friendly:

C:\xspec>bin\xspec.bat -t tutorial\schematron\demo-01.xspec
Creating Test Stylesheet...

ERROR in x:description: Missing @stylesheet.
...

@AirQuick AirQuick added this to the v2.1 milestone Mar 2, 2021
@AirQuick AirQuick merged commit c73cfca into xspec:master Mar 9, 2021
@AirQuick AirQuick deleted the notify-missing-test-type branch March 9, 2021 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant