Extension Functions
In XSLT 1.0, W3C defined the way to differentiate extension functions from built-in functions by requiring that namespace-qualified names be used to reference extension functions, as in starpowder:calculate(). XSLT 1.0 also provided the function-available()function to test for the availability of a function by name.
The XSLT 1.1 working draft put some additional restrictions on extension functions:
Extension functions must work like built-in functions.
Language bindings must be provided for Java and ECMAScript.
It must be possible to extend the mechanism naturally to support other languages in the future.
A processor should not be required to implement the portable extension function binding for any particular language.
A processor ...
Get Inside XSLT now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.