• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scripting Extensions in XSLT?

 
Siegfried Heintze
Ranch Hand
Posts: 408
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 378
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Siegfried,
Have you read this article here ?

Hope this will answer some of your questions
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic