Subject: Re: [xsl] How to call an XSLT function whose name isn't known till run-time? From: "Piez, Wendell A. (Fed) wendell.piez@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 6 Dec 2019 17:30:09 -0000 |
Roger, Wouldn't this would be another occasion for the technique of using an element as a proxy for your function, as in Dimitre's FXSL? In other words, if your variable held an element <roger:function-to-invoke/>, you could apply templates to it to dispatch to your function, passing its arguments as parameters. Cheers, Wendell -----Original Message----- From: Costello, Roger L. costello@xxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, December 6, 2019 12:21 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] How to call an XSLT function whose name isn't known till run-time? Hi Folks, I have an XSLT variable, $function-to-invoke, that holds the name of an XSLT function to be invoked. 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(...). Is there a way for XSLT to call a function whose name isn't known till run-time? /Roger
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How to call an XSLT funct, Dimitre Novatchev dn | Thread | Re: [xsl] How to call an XSLT funct, Martin Honnen martin |
Re: [xsl] How to call an XSLT funct, Dimitre Novatchev dn | Date | Re: [xsl] How to call an XSLT funct, Dimitre Novatchev dn |
Month |