Is it possible with xpath to get the result transformed somehow, just like it can be done with SQL?
Given the following:
<a>
<b x="1" y="2" z="3">
<b x="2" y="2" z="3">
</a>
For example if I wanted to get all b nodes, but i don’t want the z attribute to be part of the the results.
Or another thing which Iam thinking about is to receive all y nodes multiplied with a factor something like that /a/b[(@y*2)] which seems not to be possible, at least I don’t know how to write it.
No, with XPath, you can only select some nodes from the document. To do this, you could use XQuery (which is a superset of XPath) or XSLT.