[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

Subject: Re: Is it possible to store XSLT code fragments as data and then dynamically evaluate those code fragments?
From: "Wendell Piez wapiez@xxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 21 Jun 2019 11:49:47 -0000
Re:  Is it possible to store XSLT code fragments as dat

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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.