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

Re: Coding Optimization for big files

Subject: Re: Coding Optimization for big files
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 10 Mar 2004 14:26:38 GMT
Re:  Coding Optimization for big files
> But I don't be sure that I can avoid defining big variables.

It's not clear that you need define any variables at all.
Certainly therse two aren't doing anything much

			<xsl:variable name="indexCustomer" select="@customer"/>
			<xsl:variable name="indexContract"
			select="@contract"/>

You could just use @customer and @contract in the with-param.

Although actually I don't think you want to do that either, that's just
passing the two parts of your key and then you search the whole file
again looking for that:
<xsl:value-of
select="$allSUMGr22[@customer=$pIndexCustomer][@contract=$pIndexContract]/
the slow way even though you have already made a key that indexes on
this info:


	<xsl:key name="gr22CustomerContractKey" match="/TIMM-MESSAGE/SUM/Gr22" use="concat(@customer,'|',@contract)"/>


Actually I'm confused as you don't seem to be using any of the Gr22
with the same contract and customer values except the first one.


so isn't 

<xsl:value-of
select="$allSUMGr22[@customer=$pIndexCustomer][@contract=$pIndexContract]/IMD....

just a slow way of getting back to the current node, ie the above could be

<xsl:value-of select="IMD....



David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.