add "capture" attribute to generated file element