xsl-list
[Top] [All Lists]

Re: [xsl] HST's answers Re: [xsl] Efficient way to check sequence membership -

2011-03-03 03:33:01
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave Pawson writes:

On Thu, 03 Mar 2011 09:15:01 +0000
Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:


Does xslt version next have the member() function Mike?
All these node functions, member seems a fairly obvious one?


What would you expect the member() function to do?

Solve Henrys problem? Return true if the item is a member
of the set of nodes.

As David Carlisle pointed out, '=' already supplies that
functionality.  If I had a request for v.next, it would be to expose
support for hash arrays.  They are sort-of implicit in xsl:key, but
making them explicit would remove the necessity in my case for
constructing a set of elements to hold the keys.

ht
- -- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 651-1426, e-mail: 
ht(_at_)inf(_dot_)ed(_dot_)ac(_dot_)uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFNb2BAkjnJixAXWBoRAs0TAJ9LZHaV6evFVI2gf5j2FOa6HOGKkQCfWuKR
nEiPoV/QuPmx81vGwkxOVVI=
=/DSU
-----END PGP SIGNATURE-----

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>