Hi Dave, I cite w3c XPath spec: >The primary syntactic construct in XPath is the expression. An expression matches the production Expr. An >expression is evaluated to yield an object, which has one of the following four basic types: > > * node-set (an unordered collection of nodes without duplicates) > * boolean (true or false) > * number (a floating-point number) > * string (a sequence of UCS characters) If the object is for example string, I want to have in desired node set nodes, which contributed to that string by at least one character. It means every node which is not used in condition.
Probably the set would be constructed by removing arithmetics and functions from expr. and making over nodes union. Doing so, is hard if I don't have parse tree of expr, but if I have parse tree it is ... not easy :)(many cases, traversing tree, ... uff). Second way I mind, is to construct node set programatically when original expr is evaluated. It is principially the same, but I am directly constructing node set instead of another expr. The hard part is, that I don't know XPath part of Xalan at all. Hmm the expr should be, but I am not sure substring(/root/child[a=3]/child::text(), start, length) Tomas -- View this message in context: http://www.nabble.com/XPath-expression-evaluation-tp14425470p14426971.html Sent from the Xalan - J - Users mailing list archive at Nabble.com.