-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add x:variable to schema and improve compiler support for x:variable #475
Conversation
Per issue xspec#60, x:variable is missing from the schema. This change adds it and fixes some bugs in the compiler related to handling of variables.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ith last commit, fd5b4de # Conflicts: # test/xspec-node-selection.xspec # test/xspec-variable.xspec
4626596
to
b5420c2
Compare
This comment has been minimized.
This comment has been minimized.
…d align test/xspec-variable*.xspec with PR#320 # Conflicts: # test/xspec-variable.xspec
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…move tests requiring XSLT 3.0 from xspec-variable.xspec to xspec-eqname.xspec.
Thanks for the reference. I believe I don't need to do anything special to react to or mention XSLT 1.0 differences with regard to redefinition of variables. Redefined XSpec variables compile to redefined XSLT variables, which work fine in multiple recent Saxon versions because they operate as XSLT 2 or XSLT 3 processors. |
Co-Authored-By: AirQuick <AirQuick@users.noreply.github.com>
Co-Authored-By: AirQuick <AirQuick@users.noreply.github.com>
Co-Authored-By: AirQuick <AirQuick@users.noreply.github.com>
I've reviewed all the files. We're quite close to the end of the game. 😃 |
I totally agree. |
What should we say about Schematron? |
When drafting the wiki content, I considered saying "XSLT and XQuery" explicitly somewhere. Then I saw that the entire Writing Scenarios wiki makes no mention of Schematron. How about having that wiki say near the top that the whole topic is about XSpec for XSLT and XQuery, and linking to the separate topic, Writing Scenarios for Schematron? Maybe something like the following, in the Introduction section: Scenarios fall into four main types:
If there's a concise way to make the Release Notes indicate that the support for variables is in XSpec tests for XSLT and XQuery only, that sounds good. |
Sounds like a nice idea. Can you make those changes? |
Yes, I updated the Writing Scenarios wiki with the extra Schematron bullet and the new XSpec Variables section. Thanks for merging this pull request! |
@cirulls |
@AirQuick and @cirulls : You're very welcome, and thanks for the compliments. I enjoyed working with you both on this, and it was a super learning experience! About the release notes, how about something like the following? Feel free to change anything, especially to make it fit in better with surrounding content. The 2nd sentence, in particular, can be removed if you think it is obvious or want to save space.
(FYI, I will be away from the Internet until Tuesday.) |
@galtm: it looks good to me, I added it to the draft release notes. |
Thanks, @cirulls ! |
Per issue #60, x:variable is missing from the schema. This change adds it
and fixes some bugs in the compiler related to handling of variables.
A few questions and comments