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 ...

+ Reply to Thread
Results 1 to 4 of 4

xalan extension functions

  1. Default 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


  2. Default 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

  3. Default 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


  4. Default 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

+ Reply to Thread

Similar Threads

  1. Re: Tcl Extension Repository -> extension source link list
    By Application Development in forum TCL
    Replies: 0
    Last Post: 09-07-2007, 09:53 AM
  2. How to call module functions inside class instance functions?
    By Application Development in forum Python
    Replies: 7
    Last Post: 08-19-2007, 12:48 AM
  3. Replies: 13
    Last Post: 07-08-2007, 12:07 PM
  4. Replies: 0
    Last Post: 12-08-2005, 06:39 AM
  5. Building ooRexx - missing Xalan - help needed
    By Application Development in forum REXX
    Replies: 7
    Last Post: 11-03-2005, 04:37 PM