Ihe Onwuka
2014-01-02 13:21:13 UTC
<A name="me"><B><C score="" /><D>some content</D></B><B><C score="44"
/><D>some content</D></B></A>/
descendant::C[normalize-space(@score)]/
<g>{<x name="{ancestor::A/@name}" position="{position()}"/>,.}</g>
Now look what Saxon 9.3.0.5 gives for the position attribute
<g><x position="1" name="me"/><C score="44"/></g>
and eXist 3.0
<g>
<x name="me" position="0"/>
<C score="44"/>
</g>
The idea was to have returned the position of the instance of C that was
found within it's parent. I'm not convinced either are doing that but it's
a nice to have for me not a core so I will report and leave it at that.
/><D>some content</D></B></A>/
descendant::C[normalize-space(@score)]/
<g>{<x name="{ancestor::A/@name}" position="{position()}"/>,.}</g>
Now look what Saxon 9.3.0.5 gives for the position attribute
<g><x position="1" name="me"/><C score="44"/></g>
and eXist 3.0
<g>
<x name="me" position="0"/>
<C score="44"/>
</g>
The idea was to have returned the position of the instance of C that was
found within it's parent. I'm not convinced either are doing that but it's
a nice to have for me not a core so I will report and leave it at that.