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

Re: Re: Re: An issue with XPath 2.0 sequences (Was Re:

Subject: Re: Re: Re: An issue with XPath 2.0 sequences (Was Re: RE: Muenchian method, and keys 'n stuff)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 2 Feb 2002 12:06:39 GMT
asp sml xsl

> I'm puzzled why you should say that, because I've never seen anyone complain
> that when you do book/chapter/para you get back a "flat" list of <para>
> elements rather than a sequence of sequences of sequences.

Xpath as used in (unextended) XSLT 1 is a one-way street, you select
nodes from the source, and you do something with them and construct some
result tree, and that basically is the end of the road.

This has always been seen as a major limitation, and in XSLT2 there is  
much more emphasis on being able to reuse results of expressions,
this is a good thing. However XSLT is, if it fits into any kind of box
at all, a declarative functional programming language (just lacking a
few features like functions as first class objects:-) If one looks to
any such language to see how one programs in a side effect free way
(pure variants of lisp, SML, haskell, miranda, ...) then one finds that
iterating over lists is just about the most common and fundamental
paradigm, however it will be virtually impossible to port any of these
standard programming techniques to XSLT as the list mechanism is so
bizarre. One can do it (as Dimitre has shown in XSLT 1) by faking
everything with node sequences, but that means that the sequence
possibilities added in Xpath2 are not being used at all, and will mean
as you have commented before a lot of overhead in generating things with
identity when that isn't really needed.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.