[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: First public working draft of XSLT 2.1

Subject: Re: Re: First public working draft of XSLT 2.1
From: ac <ac@xxxxxxxxxxxxx>
Date: Sat, 15 May 2010 03:43:32 -0400
Re:  Re: First public working draft of XSLT 2.1
Hi Vladimir,

I understand your concerns but feel that you may be forgetting many very useful use cases and, if I understand well what you mean by "the worst effect will be from developers who will widely practice the "easiest" way to achieve desired effect with dynamic xpath", I would think that any function, instruction, or feature can be misused and typically is, sometimes. That does not mean that we should remove them all, does it? If you built smart XML layouts, for example, with embedded rules, to query/fetch content, for example, would you define your own rule language and create your custom rule language interpreter, or would you not do that and rather hardwire all your queries in the applications, forcing users to modify the applications if they need to change/add/remove queries and/or layouts, or would you prefer using xpath and evaluate(), or do you have some other way of handling this?

Compilation and interpreters are not mutually exclusive and interpreters have proven their usefulness. Of course, if you compile to native code, without external run-time support, you probably need to handle run-time internally, and the less features to support, the less code you may have to write/compile/deploy, but again, removing everything may be even better.

I am sorry to disagree, but evaluate() seems very valuable. We have more compelling use cases for it and I am happy that it will finally be part of the standard.

OTOH, I agree that higher-order functions are indeed very useful too.

Regards,
ac



I think, that the new xsl:evaluate instruction is the most harmful addition, as
it either rules out the idea of compilation of xslt in native/IL/other language
code, or demands for interpreter or compiler to be available at
stylesheet execution time.


This makes execution environment much more heavier than necessary.

But probably the worst effect will be from developers who will widely
practice the "easiest" way to achieve desired effect with dynamic xpath.

On the other hand indirect function calls introduced in xpath 2.1 give
enough power to model dynamic flexibility, if required.
--
Vladimir Nesterovsky
http://www.nesterovsky-bros.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.