[xquery-talk] last possible child's attribute

Michalmas michalmas at gmail.com
Sun Mar 8 14:23:50 PST 2009

Hi Christian,

Yes, it did the trick.

However, i can do only /descendant::*[@start][last()].

If i try to get value of @lc, then i get error: "A document node may not
have  an attrribute node"

(i use Xml Spy 2009)

Any ideas how to get that value?

On Sun, Mar 8, 2009 at 2:16 PM, Christian Grün <christian.gruen at gmail.com>wrote:

> > Also, i forgot to add that not every node must have lc attribute.
> Try this:  /descendant::*[@lc][last()]/@lc
> Christian
> http://basex.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://x-query.com/pipermail/talk/attachments/20090308/d781ec38/attachment.htm

More information about the talk mailing list