...
<element>
<e:Element1 xmlns:e="mynamespace" > ... </.. >
<e:Element1 xmlns:e="mynamespace" > ... </.. >
<e:Element1 xmlns:e="mynamespace" > ... </.. >
<a/>
</element>
...
and this XPath:
//*[local-name()='element']/count(*) return 4 what is OK.
but now I wanna know count of element1 what is 3. I try a lot of possibilities but with no succes. I have to use local-name and namespace-uri()
You can try the following: