View Single Post
  #2 (permalink)  
Old June 7th, 2018, 03:26 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Information on writing Java extension functions for calling from Saxon XSLT code can be found here:

http://www.saxonica.com/documentatio...!extensibility

The mechanism of "reflexive extension functions" which allows you to call directly into your Java code is not available in Saxon-HE. But you can wrap it up as an "integrated extension function".

But really, the Luhn algorithm can be implemented as an XSLT function just as easily as in Java.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
Reply With Quote