1. only relativize the href if the fileset has a xml:base attribue
2. if the d:file element does not already have a xml:base attribute; set its base URI to point to the URI of the file

In retrospect, # 2 is probably a bad idea.