Using parameters with saxon:transform?
Added by Anonymous over 18 years ago
Legacy ID: #3634450 Legacy Poster: Andrew Savikas (andrewsavikas)
Anyone know of any way to pass parameters when using the saxon:transform() extension function? I'm trying to pipe an xml document through a series of xslt stylesheets, some of which I'd like to accept parameters. I started with a series of separate calls to saxon8.jar (using a simple ruby wrapper script), but that means loading the JVM for each command-line call to saxon. A combination of saxon:compile-stylesheet() and saxon:transform() solves the JVM-loading issue, but now I can't figure out how to pass parameters to those stylesheets. Any suggestions are appreciated. Cheers, Andrew Savikas
Replies (1)
RE: Using parameters with saxon:transform? - Added by Anonymous over 18 years ago
Legacy ID: #3634779 Legacy Poster: Michael Kay (mhkay)
This can't be done currently. There was a recent discussion on the topic, around the difficulties of coming up with a good design for an API within the constraints of the XPath type system. In a pipeline of transformations, the obvious thing to do is to add the "parameter" information to the document being passed as input to the transformation.
Please register to reply