• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do i call a java method from xsl?

 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I don't see anything in my browser.
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not able to see your replies
 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Srikkanth Mohanasundaram
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for that..And i'm not using a java app to transform the xml.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic