[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: RE: [xsl] Best Practice - collection() function
Subject: Re: RE: [xsl] Best Practice - collection() function From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Mon, 7 Jul 2008 12:52:06 +0100 |
> Question - I am using keys to provide cross referencing for the index. Since the keys are declared as a child of <xsl:stylesheet>, when I call a collection(), is the key over written or does the key continue to hold all the information in memory? > That's an odd-ish question - what is the significance of xsl:key being a top-level element? Keys should always be held in memory... that's what they're for :) They're built once per input document, and that could be each document-node returned from calling collection, or a single variable wrapping that call... it's up to you and whether you need to key your entire set or just each document. If you are using Saxon and having memory issues with collection() then use saxon:discard-document: http://ajwelch.blogspot.com/2006/11/using-collection-and-saxondiscard.html -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: RE: [xsl] Best Practice - colle, philip.vallone | Thread | RE: RE: [xsl] Best Practice - colle, Michael Kay |
Re: RE: [xsl] Best Practice - colle, philip.vallone | Date | RE: RE: [xsl] Best Practice - colle, Michael Kay |
Month |