didn't work, returns no results.<br><br>quite strange it is that even /descendant::* doesn't display anything.<br><br>Also, i forgot to add that not every node must have lc attribute.<br><br>Thanks!<br><br><div class="gmail_quote">
On Sun, Mar 8, 2009 at 1:51 PM, Andrew Welch <span dir="ltr"><<a href="mailto:andrew.j.welch@gmail.com">andrew.j.welch@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5">> What i need to get in xquery is the last possible child's attribute.<br>
><br>
> Let's say i have following XML:<br>
><br>
> <a><br>
> <aa lc=1><br>
> <aaa lc=00><br>
> </aaa><br>
> </aa><br>
> <bb lc=0><br>
> </bb><br>
> <zz lc=1><br>
> <ccc lc=123><br>
> </ccc><br>
> </zz><br>
> </a><br>
><br>
> and i want to get the last child of 'a' node. So, in this case, it would be<br>
> node 'ccc'. Then, i want to get lc attribute - in this example, 123.<br>
<br>
<br>
</div></div>/descendant::*[last()]/@lc<br>
<font color="#888888"><br>
<br>
--<br>
Andrew Welch<br>
<a href="http://andrewjwelch.com" target="_blank">http://andrewjwelch.com</a><br>
Kernow: <a href="http://kernowforsaxon.sf.net/" target="_blank">http://kernowforsaxon.sf.net/</a><br>
</font></blockquote></div><br>