views:

40

answers:

0

This is a followup to an answer on a previous question I had about XSLT.

To recap, I didn't realize that without EXSLT, XSLT wouldn't let you dynamically create an xpath expression with string values. One of the suggested workarounds was

to query the input document's DOM before you execute the transform, and pass the node-set into the transform

I was using Apache Ant to do the transformation, and per the manual on the xslt/style task's parameters

Text value to be placed into the parameter. Was originally intended to be an XSL expression.

it sounds like Apache Ant doesn't support this. It got me wondering though, how would this semantics of this work in a system that did support this?

So, what Toolchains or systems support passing a nodeset from the source document into a transformation as a parameter. Bonus points for example code.