You'll be wanting to use positional predicates:
$j/bookstore/book[1]
$j/bookstore/book[2]
John
fatma helmy wrote:
> let $j:=<bookstore>
> <book> ....</book>
> <book> ....</book>
> </bookstore>
>> how to distinguish between book nodes suppose i have
> no dtd and no node attribute identifier. can i get the
> node position to order them 1 , 2 ,, etc
>>>> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
>http://mail.yahoo.com> _______________________________________________
>talk at xquery.com>http://xquery.com/mailman/listinfo/talk
--
John Snelson, Berkeley DB XML Engineer
Sleepycat Software, Inc
http://www.sleepycat.com
Contracted to Sleepycat through Parthenon Computing Ltd
http://blog.parthcomp.com/dbxml