Subject: RE: Can a match attribute use a non-pattern expression? From: Kay Michael <Michael.Kay@xxxxxxx> Date: Wed, 5 May 1999 11:02:54 +0100 |
Elliotte Rusty Harold asked: > Why is match restricted to patterns while select is not? I think the reasoning is that patterns should not be context-dependent. It should be possible to determine whether a node matches a pattern without actually executing the algorithm: for all possible contexts NodeSet n = evaluate(NodeSetExpression, Context); if (n contains target) return true; end for; return false; Actually I think there are some patterns for which it is quite hard to avoid executing this algorithm, especially those that use "last()". But at least the new draft only requires us to consider ancestors of the target node as the possible contexts. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Can a match attribute use a non, Elliotte Rusty Harol | Thread | How to use ENTITY declarations and , Mike Brown |
Re: How do I skip an element?, David Carlisle | Date | RE: How do I skip an element?, Kay Michael |
Month |