No error when the value of a static parameter is supplied at execution time
When a stylesheet declares a static parameter, Saxon allows a value to be supplied for the parameter at execution time. This means that the compile-time and run-time values of the parameter may differ, which is contrary to the intent of the spec, and has potential to cause chaos if the optimizer replaces references to the parameter with its compile-time value.
Demonstrated by a new unit test TestStaticAttr/testStaticAtt6
Please register to edit this issue