[Home] [By Thread] [By Date] [Recent Entries]
> 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
|

Cart



