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

variables/parameters in match of xsl:key, 'ends-with'

Subject: variables/parameters in match of xsl:key, 'ends-with'
From: "Daniel Bowen" <dbowen2@xxxxxxxxx>
Date: Tue, 9 Jan 2001 16:41:21 -0700
xsl ends with
(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


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.