[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Selecting elements from source document based on
> So, given > <xsl:variable name-"paths-to-match" as="xs:string*" > select="doc('checkpaths.xml')/checkpaths/path" /> > > you can use > /log/logentry[paths/path = $paths=to-match] > > This is O(nB2) on the number of paths, Not if you use a processor that does join optimisation! But if you don't want to rely on the system's optimizer, it's easy enough to hand-optimize with <xsl:key name="k" match="/log/logentry" use="paths/path"/> ... select="key('k', $paths-to-match)" Michael Kay Saxonica
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|