Is this possible using the document() function???
yes
only catch is you can't use keys (or rather can't solely rely on keys)
as each document will be key indexed separately, however a combination
of the generate-id of the root node of the document and a key within
tehdocument allows you to group any node set.
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________