transfer attributes from transcluded element