Sept. 29, 2009
4:32 a.m.
2009/9/28 Stefan Behnel <stefan_ml@behnel.de>
Emanuele D'Arrigo wrote:
1) is it possible to check if an element is selected by a particular xpath expression -without- checking if the element is part of the whole node-set returned by the expression evaluation?
Not that I'm aware of.
Darn! It'd be useful! To retrieve a whole node-set to check if one element is in it seems to be quite computationally expensive! Ok, I'll try to survive. =)
Why don't you apply the XSLT to the subtree *before* you insert it?
Because some transformations only apply "in context". I.e. suppose a transformation only applies to a <div> element if it is a child of the <body> element. I must first attach it to the <body> element and only then I can transform it. No? Manu