Replies: 3 comments 7 replies
-
Consider to post a minimal but complete sample allowing us to understand and reproduce the problem. Do you get an error? If so, which one? Or are you simply not selecting the nodes you are looking for? Have you tried another engine to check whether the problem is with your XPath expression or with XPath2? Anyway, the XPath sample alone doesn't help, show us the XML and the code to reproduce the problem. |
Beta Was this translation helpful? Give feedback.
-
I don't see which sense |
Beta Was this translation helpful? Give feedback.
-
This is not a problem with XPath2.net. I tried it using Saxon, and that also gives -5 as the result. I will give you a hint anyway: You say that you are executing this rule in a context, but when you start an expression with I would suggest splitting up the expression, which I did using XQuery, like
The result is In the first part, the
In that case, it would still be better to split this expression in meaningful parts. I have not worked with XPath2.net for some time, so I don't know how to do that in a neat way. It depends on the context of your program, the programming language you use, etcetera. Maybe you could use LINQ instead. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a path expression such as /path1/path2/path3[path4 and path5/path6=path2/path3] . I cannot have a result from this kind of expression, could you kindly help me understand how to make it work or make a fix for this, please?
Very Grateful @StefH @kashifsoofi @martin-honnen
Beta Was this translation helpful? Give feedback.
All reactions