[Home] [By Thread] [By Date] [Recent Entries]
Florent Georges wrote:
Abel Braaksma wrote: Nice shortcut! I like it much better than my original solution (which looks awkward with generate-id). The predicate [1] is not needed on parent::, it always returns one node. The OP wanted to test for 'test1' or 'text' nodes, which, when added to your solution, becomes: (parent::* | preceding-sibling::*[1] )[last()][self::test1 | self::text] -- Abel
|

Cart



