[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

Subject: Re: How to call an XSLT function whose name isn't known till run-time?
From: "Dimitre Novatchev dnovatchev@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 6 Dec 2019 17:32:01 -0000
Re:  How to call an XSLT function whose name isn't know
And in XSLT ver < 3

Use the same technique that is in the heart of FXSL -- Have different
templates that match unique nodes and that call a corresponding function.

Cheers,
Dimitre

On Fri, Dec 6, 2019 at 9:29 AM Dimitre Novatchev dnovatchev@xxxxxxxxx <
xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:

> Perhaps:
>
> <xsl:evaluate ... >
>
> ?
>
> https://www.w3.org/TR/xslt-30/#dynamic-xpath
>
>
> Cheers,
> Dimitre
>
> On Fri, Dec 6, 2019 at 9:20 AM Costello, Roger L. costello@xxxxxxxxx <
> xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>> 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
>>
>>
> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/782854> (by
> email <>)

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.