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

pure: Evaluate variables in the order they are declared #178

Merged

Commits on Aug 23, 2024

  1. pure: Evaluate variables in the order they are declared

    Store the variables from the Schematron in a linked hashmap, to preserve
    their order. They are then evaluated in the order they are declared.
    
    Before this, variables were sorted with the longest first. We were
    replacing variable references with their expressions, so starting with
    the longest was needed. With the new way of evaluating variables, this
    caused problems when a variable referenced another variable that has a
    shorter name.
    
    This changes the IPSXPathVariables interface to return maps and sets,
    instead of navigable maps and sorted sets. It does not seem that the
    specifics of these types were used.
    
    Add unit test that checks the correction of this bug.
    
    Fixes phax#177.
    bertrand-lorentz committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    a0e969b View commit details
    Browse the repository at this point in the history