xsl-list
[Top] [All Lists]

[xsl] Efficiency: predicate vs function

2007-07-22 13:01:31
May I please seek the list's enlightenment.

If a standard function exists to do the same thing as can me done with
a predicate on a sequence, which is generally the more efficient
to choose; processor dependent or is it just a moot point?

For example, to return a sequence of all items but the last, which of the
following is better?

$x[ position() > 1 ]

or

remove( $x , 1 )

Thanks very much.

Justin Johansson


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--