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

xsl:key in a function?

Subject: xsl:key in a function?
From: ihe onwuka <ihe.onwuka@xxxxxxxxxxxxxx>
Date: Mon, 5 Mar 2012 20:12:06 +0000
 xsl:key in a function?
My client is using a tool to generate all transforms.

We have an external file lookup which I am told is doing i/o every
time it is invoked because of the way the code is generated.

Well I know the solution - keys, read the file once and stick it in a
variable, however this is not an option because they don't want to let
me tweak the generated code.

The tool does allow custom functions to be written.

My feeling is that that won't solve this problem and I'd like to confirm this.

My concern is that every call to the custom function to do the look up
would still entail I/O (unless they let me tweak the code and create a
variable for the document node. Worse it might result in the key index
being rebuilt on every invocation, since the xsl:key command would
have to be in the custom function. As a matter of fact is it even even
possible to have xsl:key in a custom function?

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.