Re: [xsl] Multiple search

Subject: Re: [xsl] Multiple search
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Wed, 19 Jun 2002 23:59:24 +0100
Hi David,

I don't know whether it will help or not, but you could try selecting
the Pipeline elements in a single expression like:

  /Pipelines/Pipeline
    [($LoanID = '*' or LoanID = $LoanID) and
     ($LoanPurpose = '*' or LoanPurpose = $LoanPurpose) and
     ($InternalOrginization = '*' or
      InternalOrginization = $InternalOrginization) and
     ...]

(By the way, are you sure that the source XML spells
InternalOrginization like that rather than as "InternalOrganization"?)
     
That might save you some time, particularly if you put the tests for
the parameters that are likely to filter out the most Pipelines
earlier on within the predicate, because it means that a Pipeline
element can be excluded from the resulting node set early on in the
process. It's hard to be sure though -- test it on your set up to see
if it makes a difference.

The other thing that might be worth thinking about is changing the way
the application around the stylesheet fits together, so that you only
pass a small amount of data into the stylesheet, or perhaps using
something other than XSLT to do the filtering. For this kind of task,
a small SAX filter might be better as it would be able to run through
the source document very quickly without keeping anything in memory.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread