aspose file tools*
The moose likes XML and Related Technologies and the fly likes Scripting Extensions in XSLT? 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 "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: 388
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: 350
Siegfried,
Have you read this article here ?

Hope this will answer some of your questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Scripting Extensions in XSLT?