[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: calling Java non static methods from XSLT @Mike Ka

Subject: Re: calling Java non static methods from XSLT @Mike Kay
From: "Mailing Lists Mail daktapaal@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 5 Jun 2016 16:09:03 -0000
Re:  calling Java non static methods from XSLT @Mike Ka
Dr.Kay
Can you shed some light on this please.
I have the following questions
1. Is Compiling the XSLT is relevant to this issue of the Object
creation ? Just because we are precompiling the XSLTs doesnt mean
that the XSLT will create the object once and keep it for all the
transformations? Or is it true? My assumption was, the Java Objects
are created at run time so it does not matter if the XSLTs are
compiled or not..
2. If my assumption is wrong, then would like to know what the
Compiling of XSLT works.
3. Is it possible for the Java to create the object once and pass it
to the XSLT as a parameter?
3. is there any benefits of actually using a static method instead of
instance methods, within XSLT?
Dr. Tapaal


On Sat, Jun 4, 2016 at 9:55 PM, Dimitre Novatchev dnovatchev@xxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> On Sat, Jun 4, 2016 at 6:45 PM, Mailing Lists Mail daktapaal@xxxxxxxxx
> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>> Dimitre, your suggestion makes me feel that an object can be passed
>> into the XSLT and then I can do object.method() within the XSLT.. is
>> that possible?
>
>
>
> Dr. Tapaal,
>
> The answers to your questions could be different, depending on which
> XSLT processor you are using.
>
> So, if creating an object instance and passing it to the
> transformation as parameter (and reusing the same object by passing it
> to the next transformation) is not possible, I believe this would be a
> limitation of the XSLT processor you are using.
>
> Look up the documentation of your XSLT processor.
>
> In case this is Saxon, then there isn't a better person than Dr.
> Michael Kay to provide a precise answer.
>
> --
> Cheers,
> Dimitre Novatchev
> ---------------------------------------
> Truly great madness cannot be achieved without significant intelligence.
> ---------------------------------------
> To invent, you need a good imagination and a pile of junk
> -------------------------------------
> Never fight an inanimate object
> -------------------------------------
> To avoid situations in which you might make mistakes may be the
> biggest mistake of all
> ------------------------------------
> Quality means doing it right when no one is looking.
> -------------------------------------
> You've achieved success in your field when you don't know whether what
> you're doing is work or play
> -------------------------------------
> To achieve the impossible dream, try going to sleep.
> -------------------------------------
> Facts do not cease to exist because they are ignored.
> -------------------------------------
> Typing monkeys will write all Shakespeare's works in 200yrs.Will they
> write all patents, too? :)
> -------------------------------------
> Sanity is madness put to good use.
> -------------------------------------
> I finally figured out the only reason to be alive is to enjoy it.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.