Subject: Re: [xsl] Elements and functions available From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Wed, 22 Oct 2008 10:27:35 +0100 |
Out of interest, can someone comment on the cost of calling these functions? I imagine element-available() is very cheap, but I'm wondering about function-available() with user created extensions... Given a transform that makes use of many custom extensions, is it reasonable to do: <xsl:choose> <xsl:when test="function-available( )"> normal execution </ <xsl:otherwise> test execution ...to allow you to run the transform away from the host application? Or would all the calls to function-available() adversely affect normal running of the transform? The alternative (and good practice anway I think) is to move all of the calls to extensions into one or maybe two physical stylesheets, and then you can use an alternative primary stylesheet that imports a different stylesheet where the calls to the extensions have been replaced with sample values.... Either way, I'm just wondering if I should try to avoid lots of function-available() calls? 2008/10/22 Jesper Tverskov <jesper@xxxxxxxxxxx>: > I have tested the little used XSLT functions element-available() and > function-available() and made a stylesheet that can create a report > for most XSLT processors, testing also for EXSLT extensions and Saxon > extensions. > > I have made 8 reports available and a summary, "Elements and functions > available in XSLT processors", > http://www.xmlplease.com/elements-functions. > > Feel free to suggest improvements. > > Best regards, > Jesper Tverskov > > http://www.xmlplease.com > > -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Elements and functions availa, Jesper Tverskov | Thread | Re: [xsl] Elements and functions av, Colin Paul Adams |
RE: [xsl] Group on deep equal crite, Michael Kay | Date | Re: [xsl] Elements and functions av, Colin Paul Adams |
Month |