Menu

#41 fn:functions mis-ordering elements.

open
nobody
None
5
2013-03-18
2013-03-18
No

This is the xml document that I'm testing against.
<c>B<i>C</i>X</c>

(//*/text())[2]
returns "C" which appears to be what other engines return.

However,

fn:concat('[',(//*/text())[2],']')
returns "[X]" which is unexpected (and inconsistent).

Similarly, I tested fn:substring-before(), fn:substring-after(), and others with the same results.

Discussion


Log in to post a comment.