[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: How to call an XSLT function whose name isn't know
On Fri, 2019-12-06 at 17:21 +0000, Costello, Roger L. costello@xxxxxxxxx wrote: > . For example, if $function-to-invoke > holds the string "move" then I want my XSLT program to invoke the > function with that name, i.e., invoke f:move(...). let $f := function-lookup(QName($fn, $name. 1)) return $f("hello") where $fn is the Functions and Operators namespace, http://www.w3.org/2005/xpath and 1 is the number of arguments (arity) the function takes. You do need to know the namespace URI. Liam -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|