[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Is it possible to store XSLT code fragments as dat
Hi, I have done this sort of thing successfully in Saxon using the transform() function. The pattern is not exactly the same - you take your list of XPaths (runtime parameter or source), stitch them together into an XSLT, and execute. It is a useful pattern for all kinds of heuristics, not only dynamic path evaluation. I also agree with Graydon, however, that if retrieval is your only purpose, producing and executing XQuery might make more sense than producing XSLT. (Trivial in this case.) Either way, XSLT is awesome at code generation (which might be the same as dynamic function calls seen through the other end of the spy glass?) -- and always has been. This is also bread and butter in XSLT 1.0, writing an interim serialization to the file system as necessary. Cheers, Wendell
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|