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

XSLT 2.0 or XSLT 1.0 -- which is more elegant? (Was: R

Subject: XSLT 2.0 or XSLT 1.0 -- which is more elegant? (Was: Re: mixing it up: REST+XML Namespaces + XLST)
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 19 Apr 2005 20:23:02 +1000
dimitre xslt
Hi Eric,

>
> Sure. As other posters on this list, I just don't buy the (ugly IMO)
> PSVI vision to which XSLT 2.0 belongs and, for that reason, I consider
> XSLT 1.0 both simpler and more elegant :) ...

With XSLT 2.0 I can have expressions like:

    f:pow(sum(f:map(f:flip(f:pow(),10), 1 to 10)), 0.1)

or

    f:transform-and-sum(f:flip(f:substring-before(), '*'),
                                       data(/*/*/@colwidth))


or

    f:map(f:round-half-to-even(f:sqrt(2, 0.000001)), 0 to 13)


These are really elegant compared to the xslt 1.0 code necessary to
produce the same result.

Another reason I find XSLT 2.0 more elegant than XSLT 1.0 is that
there isn't anymore any need to use an xx:node-set() extension
function.

What is really not elegant at all in XSLT 2.0 is the impossibility to
define user data types inline in a stylesheet  -- forcing the
programmer to artificially separate in different files type definition
from type usage makes XSLT 2.0 rather unique... :(

Of course, one would also like to see nested sequences, type classes
and type equations...


Cheers,
Dimitre Novatchev

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.