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

RE: multiple values for the key

Subject: RE: multiple values for the key
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sat, 2 Aug 2008 18:52:50 +0100
RE:  multiple values for the key
> But I am only concerned, that if stylesheet is quite large, 
> then to access the contents of a variable (i.e., this one, 
> <xsl:variable name="x-values">), we are asking processor to 
> build a large tree (an, additional one) in memory, which 
> might cause some performance concerns.
> 
> Using node-set function I feel is more memory efficient than, using
> document('') (which you wrote).

If the set of key values is constant (which seems a bit unlikely), then to
my mind the best solution is to put it in a separate document all on its
own, reading it using document('keys.xml'). This seems to me better than
putting it in the stylesheet and reading it using document('').

If the set of keys is constructed by the stylesheet, the creating an RTF and
reading it using xx:node-set() seems the only option.

Michael Kay
http://www.saxonica.com/

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.