This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Scripting Extensions in XSLT? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "Scripting Extensions in XSLT?" Watch "Scripting Extensions in XSLT?" New topic
Author

Scripting Extensions in XSLT?

Siegfried Heintze
Ranch Hand

Joined: Aug 11, 2000
Posts: 359
Xalan has a nonstandard feature whereby you can have javascript embedded in your XSL to be executed by your XSLT. Alternatively you can call compiled java functions from your XSLT.

(1) Do other XSLTs have similar features (like saxon)?
(2) Is the ibm/apache/xalan implementation limited to java and javascript or can I use other languages too like groovy, jython and others? Anyone have an example? I queried the groovy email list and they thought it would be possible but apparently no one as tried it. I think I asked the Xalan email list too (about specifically groovy scripting) but know one responded.
(3) Do other implementations support other languages for custom extensions? Can anyone point me to any examples? I am particularly interested in XSLT 2 complaint ones.

Thanks,
Siegfried
Gamini Sirisena
Ranch Hand

Joined: Aug 05, 2008
Posts: 347
Siegfried,
Have you read this article here ?

Hope this will answer some of your questions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Scripting Extensions in XSLT?
 
Similar Threads
need help on Converting XML to XML
Groovy for XSL Extensions?
Non-Java "Scripting Language" Most Like Java and Still Known
how to run a java app without typing "java "
Dynamic Language Support in Java 7