xalan extension functions - Java
This is a discussion on xalan extension functions - Java ; Hello,
I'm trying to add XPATH extension function to xalan-j with namespace,
I'm doing that using the following code:
Function func = (Function) class.newInstance();
int findex = FunctionTable.installFunction(name, func);
FuncLoader[] m_functions = FunctionTable.m_functions;
m_functions[findex] = new FuncEntry(class.getName(), findex);
I can ...
-
xalan extension functions
Hello,
I'm trying to add XPATH extension function to xalan-j with namespace,
I'm doing that using the following code:
Function func = (Function) class.newInstance();
int findex = FunctionTable.installFunction(name, func);
FuncLoader[] m_functions = FunctionTable.m_functions;
m_functions[findex] = new FuncEntry(class.getName(), findex);
I can define and use extension functions that doesn't have namespace,
but when I add the namespace in the XPATH expression, it doesn't work.
I tried to extend both Function2Args, and FuncExtFunction, and I had
no luck in both.
when I extended FuncExtFunction I called the super constructor with
the namespace i want.
Any hints?
BlueDoze
-
Re: xalan extension functions
It's hard to debug this without seeing your actual code for the
transformation and for the function installation, the actual
stylesheet... and having a better description of the problem than "it
doesn't work."
I presume you've already scoped out
http://xml.apache.org/xalan-j/extensions.html
and followed the steps therein.
I presume you've also looked at existing examples of namespaced extensions.
If not, those are where to start...
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
-
Re: xalan extension functions
On Jul 31, 7:08 pm, Joe Kesselman <keshlam-nos...@comcast.net> wrote:
> It's hard to debug this without seeing your actual code for the
> transformation and for the function installation, the actual
> stylesheet... and having a better description of the problem than "it
> doesn't work."
I don't do transformation, I have XML document and just evaluate some
XPath expressions at run time. those XPath expression have some
extension functions
-
Re: xalan extension functions
Blue Doze wrote:
> I don't do transformation, I have XML document and just evaluate some
> XPath expressions at run time.
OK. We still need a better view of what you're actually doing and what
happens when you do it. Free support doesn't come with mindreading services.
The best place to ask Xalan-specific questions would of course be
Xalan's own mailing list, but if you provide enough detail to diagnose
I'll take a look at it.
--
() ASCII Ribbon Campaign | Joe Kesselman
/\ Stamp out HTML e-mail! | System architexture and kinetic poetry
Similar Threads
-
By Application Development in forum TCL
Replies: 0
Last Post: 09-07-2007, 09:53 AM
-
By Application Development in forum Python
Replies: 7
Last Post: 08-19-2007, 12:48 AM
-
By Application Development in forum Javascript
Replies: 13
Last Post: 07-08-2007, 12:07 PM
-
By Application Development in forum CSharp
Replies: 0
Last Post: 12-08-2005, 06:39 AM
-
By Application Development in forum REXX
Replies: 7
Last Post: 11-03-2005, 04:37 PM