#464 Unrecognized extension instructions

v8.6.1
closed
5
2012-10-08
2006-01-27
Michael Kay
No

When an extension instruction is present in a
stylesheet and no implementation is available, Saxon
rejects the stylesheet at compile time. It should
report a failure only if the instruction is evaluated.

Source code fixed: line 1608 of StyleElement.java
changes from

compileError(instruction.validationError);
return EmptySequence.getInstance();

to

return new ErrorExpression(instruction.validationError);

and line 1526 (same module) changes from

if (snode.validationError != null) {

to

if (snode.validationError != null && !(this instanceof
AbsentExtensionElement)) {

Michael Kay

Discussion