Hi Dave--
This sounds like a job for the insert_tag_after doc callback. You could
put something like this in your instance.acl file:
# code written off the cuff, debugging left as an exercise
function getFileName(doc,tagname,op) {
if ((tagname == "file") && (op == 1)) {
# prompt user for filename
local fname = file_selector(".","xml","SGML Files|*.sgm|XML
Files|*.xml");
if (fname != ") {
modify_attr("href",fname,doc);
}
}
}
doc_add_callback(current_doc(),"insert_tag_after","getFileName")
That should do what you are after. HTH.
--Clay