Hi,
In order to provide dynamic data xml in 6.1 to Adaptive Document we can create a servlet or JSP which can forward request to Adaptive Document. While forwarding we can set dataRef dynamically.
Also, in 6.2 there is an OOTB support to provide data xml using OSGi services.
Thanks
Nitin