aspose file tools*
The moose likes XML and Related Technologies and the fly likes How do i call a java method from xsl? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How do i call a java method from xsl?" Watch "How do i call a java method from xsl?" New topic
Author

How do i call a java method from xsl?

Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185
Friends,

I have a xml file that contains an image tag(which is coded in base64)



I would decode this base64 String using the following class



I need to call this java method from a XSL(so that i pass the value of the string as an argument)..How do i do that??

EDITED BY ME TO REMOVE THE LONG STRING WHICH WAS SPOILING THE ALIGNMENT OF THE REST OF THE THREAD. - ANGELA POYNTON
[ February 16, 2007: Message edited by: Angela Poynton ]
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You can't. That is, unless you created you own proprietory XML instruction and implemented your own XSL transfomer to handle it. But that is definately using a sledgehammer to crack a nut. I reckon you are maybe looking at the wrong technology to handle your image. I presume you are transforming this XML in a Java application? In which case, why not just handle the image directly in your app?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
You could write an XSL extension in Java. That would be a standard way to do custom processing during transformation. For more information, ss http://www.exslt.org/


Ping & DNS - updated with new look and Ping home screen widget
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185
Hi,

I don't see anything in my browser.
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185
I'm not able to see your replies
Angela Poynton
Ranch Hand

Joined: Mar 02, 2000
Posts: 3143
I've edited your original post so that the page is fixed. Please refrain from using exceptionally long strings with no spaces with CODE tags as this ruins the formatting of the whole page.


Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.
Srikkanth Mohanasundaram
Ranch Hand

Joined: Feb 07, 2007
Posts: 185
Sorry for that..And i'm not using a java app to transform the xml.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do i call a java method from xsl?
 
Similar Threads
multipart download servlet
IGNORE THE PREVIOUS BASE64 QUESTION!
Binary data - base64 encoded strings - need help please....
problem base64 encoding the 3 hex bytes E2 80 A9
Basic Authentication Servlet Redirect