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

Changes and corrections for SDK 1.10.0 #699

Merged
merged 15 commits into from
Oct 12, 2023

Conversation

bertrand-lorentz
Copy link
Contributor

See the individual commits for the description.

Split the schematron files further based on the notice subtype the rules
apply to, so that one pattern contains either rules that apply to one
specific notice subtype, or rules that are not specific to a notice
subtype. There is still one pattern per file.

The files "complete-validation.sch" defines one phase for each subtype.
Each phase references the corresponding patterns so that it has all the
rules that must be applied to notices of that subtype: all patterns for
the subtype, and all patterns not specific to a subtype.

When validating a notice, if you use the phase corresponding to the
subtype of the notice being validated, you will avoid executing the
XPaths for all the rules that apply only to other subtypes.
This reduces significantly the execution time for large notices, by a
factor of 6 in some examples.

This is backwards-compatible for existing usage of the Schematron:
the loading mechanism is the same, and if no phase is defined when
validating, all rules will be applied, as before.

Update all validation reports. This adds the indication of the phase
used, updates the pattern identifiers, and moves around fired-rule
elements. No real impact on the result of validation.
Add translations.json file indicating asset type and language for each
translation file.

Add language-codes.xml to provide a correspondance between 2-letters and
3-letters language code. This is in XML so that it can be easily used
from XPath or XSLT.
This was caused by duplicate rules, so also remove those rules from
Schematron files.

Update affected validation report, removing the corresponding fired
rules.
@bertrand-lorentz
Copy link
Contributor Author

bertrand-lorentz commented Oct 3, 2023

The check failure is an issue in the SDK Analyzer, due to the addition of the translations index file.
Fix in progress.

pdonohoe
pdonohoe previously approved these changes Oct 3, 2023
rouschr
rouschr previously approved these changes Oct 4, 2023
YvesJo
YvesJo previously approved these changes Oct 5, 2023
Also remove unnecessary comments in X01 and X02 notices.
@bertrand-lorentz bertrand-lorentz dismissed stale reviews from YvesJo, rouschr, and pdonohoe via 8001152 October 6, 2023 12:21
rouschr
rouschr previously approved these changes Oct 12, 2023
@bertrand-lorentz
Copy link
Contributor Author

Analyzer has been updated, and issues it detected have been resolved, and this was approved previously.
So merging this.

@bertrand-lorentz bertrand-lorentz merged commit bb1b9e5 into develop Oct 12, 2023
2 checks passed
@bertrand-lorentz bertrand-lorentz deleted the changes-and-corrections branch October 12, 2023 08:09
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

Successfully merging this pull request may close these issues.

4 participants