[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] saxon:expression and functional argument issue ...
I have to say I really like saxon a lot and I trust it so much because I know Mike Kay is an active maintainer of the XSLT standard. It's just great work. But -- still recovering from our intense dynamic scoping battle few weeks ago -- I can't resist noting certain things that pertain to the discussion. Saxon:assign being the most outstanding one of course, but here is another little more subtle one: > saxon:expression(string) The supplied string must contain an XPath expression. The result of the function is a stored expression, which may be supplied as an argument to other extension functions such as saxon:eval(), saxon:sum() and saxon:distinct(). The result of the expression will usually depend on the current node. The expression may contain references to variables that are in scope at the point where saxon:expression() is called: these variables will be replaced in the stored expression with the values they take at the time saxon:expression() is called, not the values of the variables at the time the stored expression is evaluated. Similarly, if the expression contains namespace prefixes, these are interpreted in terms of the namespace declarations in scope at the point where the saxon:expression() function is called, not those in scope where the stored expression is evaluated.
I do not want to convey any blame on Mike Kay at all, but to the other side: in a world where serious XSLT processors offer assignment side-effects, and functional arguments of a kind the world hasn't seen since 1978 or longer, we should not hestiate to put into place implicit parameters and funarg closures rigtht into XSLT and strongly discourage XSLT implementors to add assignment extensions to their processors. regards -Gunther -- Gunther Schadow, M.D., Ph.D. gschadow@xxxxxxxxxxxxxxx Medical Information Scientist Regenstrief Institute for Health Care Adjunct Assistant Professor Indiana University School of Medicine tel:1(317)630-7960 http://aurora.regenstrief.org 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
|