You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by mahesh <ma...@gmail.com> on 2005/05/04 16:53:41 UTC
Fwd: [xsl] Extension Function with variable number of arguments
Forwarding to XALAN list
-- Mahesh
---------- Forwarded message ----------
From: Ramkumar Menon <ra...@gmail.com>
Date: May 4, 2005 8:07 PM
Subject: [xsl] Extension Function with variable number of arguments
To: xsl-list@lists.mulberrytech.com
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: <ma...@lists.mulberrytech.com>
--~--
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
Re: [xsl] Extension Function with variable number of arguments
Posted by Mukul Gandhi <ga...@gmail.com>.
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 <ma...@gmail.com> wrote:
> Forwarding to XALAN list
> -- Mahesh
>
> ---------- Forwarded message ----------
> From: Ramkumar Menon <ra...@gmail.com>
> Date: May 4, 2005 8:07 PM
> Subject: [xsl] Extension Function with variable number of arguments
> To: xsl-list@lists.mulberrytech.com
>
> 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: <ma...@lists.mulberrytech.com>
> --~--
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xalan-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org