I am not sure (haven't tried before), but I believe you may be able to accomplish this functionality using a repeat control.
Use the view as a data source for the repeat control, which renders a row for each document.
You should then be able to assign an eventHandler to the row, and execute script to edit the associated document.
Perhaps try something like the following (knocked up in Notepad - please excuse errors!):
<xp:table>
<xp:repeat id="repeat1" value="#{yourView}" var="rowData" indexVar="rowIndex">
<xp:tr>
<xp:td>
<xp:text escape="false" id="data">
<xp:this.value><![CDATA[#{javascript:rowData.getColumnValue("someField")}]]></xp:this.value>
</xp:text>
</xp:td>
<xp:eventHandler event="ondblclick" submit="false">
<xp:this.action>
<xp:openPage name="/docXpage.xsp" target="editDocument" documentId="#{javascript:rowData.getUniversalID()}">
</xp:openPage>
</xp:this.action>
</xp:eventHandler>
</xp:tr>
</xp:repeat>
</xp:table>
Hope that helps you out! T.