I read yesterday on XSL-List , somebody suggested this idea.. JDK 1.5
allows us to write methods with variable number of arguments. You may
use this feature.  Please see this article
http://today.java.net/pub/a/today/2004/04/19/varargs.html
But this will tie you to JDK 1.5 .

C/C++ languages also allows us to write methods with variable number
of arguments. You may write such a function in C/C++ , and then use
JNI to call this from a Java object. From the XSLT stylesheet, you
will call the Java class(which calls C/C++ function via JNI). I
believe this will work. (Please see this article
http://publications.gbdirect.co.uk/c_book/chapter9/stdarg.html)

Regards,
Mukul

On 5/4/05, mahesh <[EMAIL PROTECTED]> wrote:
> Forwarding to XALAN list
> -- Mahesh
> 
> ---------- Forwarded message ----------
> From: Ramkumar Menon <[EMAIL PROTECTED]>
> Date: May 4, 2005 8:07 PM
> Subject: [xsl] Extension Function with variable number of arguments
> To: [EMAIL PROTECTED]
> 
> Hi All,
> Is there any way to create an XPath Extension Function that accepts
> variable number of arguments. This extension function would be called
> by an XSLT 1.0 Processor (XALAN).
> 
> -Menon
> 
> --
> Shift to the left, shift to the right!
> Pop up, push down, byte, byte, byte!
> 
> -Ramkumar Menon
> A typical Macroprocessor
> 
> --~------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: <mailto:[EMAIL PROTECTED]>
> --~--
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to