|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Re: Assignment no, dynamic scoping si (was: Wishes
Mark Nahabedian wrote:
Mike Haarman writes: Yea, that's truly a lot of work and you should either do this everywhere or nowhere, because the point of dynamic bindings is that they are available anywhere in the call graph. So, if you have some template in the middle that has not passed the binding on because it was believed that this template would not be called here ... yor dynamic binding would be lost. If anything is not good XSLT, then the assumption that certain templates are being invoked in a certain order. There's still the issue of being able to override the passed in "dynamic" value with a new one. XSLT doesn't allow this though [http://www.w3.org/TR/xslt#local-variables]: I don't see that as a problem. Really, I have no problem accepting that a binding cannot be used as a counter etc. I have no issue with "changing variables" as you change the content of a storage cell. I really only care about dynamic scoping so that you can put a few default things in a context to be able to refer to but also to override as you go down the execution graph. That can be easily done by just passing the new binding as the parameter. The only problem again is that you cannot rely on a few hacks here and there to add those parameters. You need to do it everywhere. Indeed, that could be done with an XSLT on XSLT, but it's something you have to remember doing and all of that is a lot of hassle and slows everything down for a feature only needed in a few cases. regards -Gunther PS: The paper "Implicit Parameters: Dynamic Scoping with Static Types" from Jeffrey Lewis et al. has become pretty famous for a description of what these dynamic scopes are good for and how they can be made work nicely. [http://citeseer.nj.nec.com/246042.html]
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|

Cart








