xpath string concatenation function
Bug #571303 reported by
edA-qa
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
TestPlan |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
The string() function in xpath just considers the first node (and its children) in a node-set. There are many cases where a concatenated result is desired instead.
For example, say you wish to get all the nodes following a particular <br/> node. You can easily specify the nodes you want like:
//br/following-
but string() will just take the first once. What we want is a concat function which takes the string() conversion of all of the nodes. Since the TypeConvert class can already do string() conversion the implementation of such a concat should be trivial.
set %Result% as concat //br/following-
Related branches
To post a comment you must log in.
Thinking about it the function need not even be related to Xpath, it could simply concatenate any iterable list relying on string conversion for those items.