Attribute saxon:explain doesn't work
According to the documentation, it should be possible to say saxon:explain="yes" on
xsl:function to get optimizer diagnostics for that template or function.
This isn't working, on either 9.9 or 10.0.
The basic code support is there (
StyleElement.isExplaining()) but it's always returning false.
#1 Updated by Michael Kay over 1 year ago
XSLFunction and XSLTemplate both ignore unknown attributes in the Saxon namespace, so the triggering code in checkUnknownAttribute() is not being fired.
This is consistent with the spec (§3.2): "An implementation that does not recognize the name of an extension attribute, or that does not recognize its value, must perform the transformation as if the extension attribute were not present. As always, it is permissible to produce warning messages."
(I don't think we follow this rule in all cases; I think we sometimes reject an extension attribute if it has an invalid value, or if it's not allowed in a particular Saxon edition)
#2 Updated by Michael Kay over 1 year ago
- Status changed from New to In Progress
- Applies to branch 10, 9.9 added
- Fix Committed on Branch 10, 9.9 added
I've fixed the code on the 9.9 and 10.0 branches so
saxon:explain now works on
xsl:template. The documentation needs changing to reflect the fact that the attribute is available only on these two elements.
Please register to edit this issue