This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
BOUNCE xsl-list@lists.mulberrytech.com: Non-member submissionfrom ["Daniel Bowen" <dbowen2@qwest.net>]
- To: xsl-list <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] BOUNCE xsl-list@lists.mulberrytech.com: Non-member submissionfrom ["Daniel Bowen" <dbowen2@qwest.net>]
- From: owner-xsl-list at lists dot mulberrytech dot com (by way of B. Tommie Usdin)
- Date: Thu, 11 Jan 2001 09:29:54 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
>From dbowen2@qwest.net Tue Jan 9 12:26:51 2001
Received: from slkcpop5.slkc.uswest.net (slkcpop5.slkc.uswest.net
[206.81.128.5])
by biglist.com (8.8.8/8.8.5/BL-2) with SMTP id MAA02695
for <xsl-list@lists.mulberrytech.com>; Tue, 9 Jan 2001
12:26:51 -0500 (EST)
Received: (qmail 55762 invoked by uid 0); 9 Jan 2001 17:26:44 -0000
Received: from unknown (HELO dbowen2) (130.187.16.6)
by slkcpop5.slkc.uswest.net with SMTP; 9 Jan 2001 17:26:44 -0000
Date: Tue, 9 Jan 2001 09:55:47 -0700
Message-ID: <038f01c07a61$4ec73b70$0610bb82@corp.es.com>
From: "Daniel Bowen" <dbowen2@qwest.net>
To: xsl-list@lists.mulberrytech.com
Subject: variables/parameters in match of xsl:key, 'ends-with'
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
(The first post didn't seem to make it through for 3 days, so I'm reposting)
Does anyone know if future versions of XSLT will allow variables or
parameters in the "match" attribute of xsl:key?
In particular, I have a parameterized XSLT stylesheet (using xsl:param),
where the param is used to filter what is generated. I'm using keys for
Muenchian style grouping. I can generate keys for more than I want, and
filter later. However, the input can be several MB., so I'd like to restrict
what keys are built for performance reasons. When I hard code equivalent
filters on the key match (instead of using filters that reference a
variable), I do see enough of a performance difference to want to do this!
As a side note. I sure wish there was an "ends-with" string function in
addition to the "starts-with" function. I seem to need it much more often
than "starts-with". I'm imitating "ends-with(source, find)" with
find = substring(source, 1 + string-length(source) - string-length(find))
But for input of several MB., it takes a bit of a hit that it wouldn't if
there was an 'ends-with' function! (yes, I timed the above with a comparable
"contains" and "starts-with" variant). Does anyone have a faster way to
imitate "ends-with"?
Thanks!
-Daniel Bowen
Software Engineer
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list