• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How do i call a java method from xsl?

 
Ranch Hand
Posts: 243
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not able to see your replies
 
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for that..And i'm not using a java app to transform the xml.
 
reply
    Bookmark Topic Watch Topic
  • New Topic