This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: key definition
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] key definition
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 29 Oct 2001 09:22:56 GMT
- References: <F259pH71yEXUIEAOeIi00014814@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
that I would like to shorten up:
select="key('MyKey',concat('1','alpha'))/parent::*">
well, '1alpha' is shorter than concat('1','alpha') but maybe in your
real cases it's not quite like that.
/.. is shorter than parent::*
depending a bit om what your general case is like you may be able to put
the parent rather than the child in the key, so that you don't need to
go up at all.
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