Project

Profile

Help

Bug #4238

closed

In Saxon-EE, element-available() always returns true for IXSL extension elements

Added by Debbie Lockett almost 5 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
Start date:
2019-06-18
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, 9.9, trunk
Fix Committed on Branch:
10, 9.9
Fixed in Maintenance Release:
Platforms:

Description

The result of element-available() should depend on the target edition. e.g. element-available('ixsl:schedule-action') should return true when exporting for Saxon-JS, but not otherwise.

Note that ElementAvailable.isElementAvailable() takes the target edition into account for elements in the XSLT namespace, but apparently not otherwise. (But this should also be reviewed - the list of XSLT elements allowed by isSaxonJSElement doesn't look right.)

If a stylesheet containing an IXSLT extension element is run in Saxon-EE, then this results in a run-time error ("ixsl:schedule-action is available only in Saxon-JS", with no error code), rather than a compile-time error.

Please register to edit this issue

Also available in: Atom PDF