xinclude path on paste
This is a follow-on to a post from yesterday. My core problem is that I need all my xinlcude file references to be relative paths from the including document to the referneced include file. If I have an xinclude in file 1 that has a relative path to an include file and I copy or cut the xinclude, then paste it into file 2, the Arbortext is transforming the relative path to an absolute path for the pasted reference.
I've used the paste callback to intercept the paste, but when I examine the paste buffer the raw markup with the relative path is there. The source of the paste buffer is not available to the paste callback, so I can't construct the proper relative path and do my own insert and cancel the default paste.
I already have a custom version of the create_include alias that ensures that my paths are relative when an inclusion is created from a selection, but this alias isn't called by the paste operation of an already existing xinclude.
Can anyone point me to the underlying alias or function that Arbortext is using to paste an xinclud so that I can override it with a custom function? Is there another callback or hook that I can use to sucessfully insert a paste buffer that contains an xinclude?
Steve

