# creation of the <header> element and of it's many attributes
set tmxHeader to current application's NSXMLNode's elementWithName:"header"
set headerCreationTool to (current application's NSXMLNode's attributeWithName:"creationtool" stringValue:"xls2tmx")
set headerCreationToolVersion to (current application's NSXMLNode's attributeWithName:"creationtoolversion" stringValue:"0.1")
set headerSrcLang to (current application's NSXMLNode's attributeWithName:"srclang" stringValue:myTMsrclang)
set headerAdminLang to (current application's NSXMLNode's attributeWithName:"adminlang" stringValue:"en")
set headerDatatype to (current application's NSXMLNode's attributeWithName:"datatype" stringValue:"unknown")
set headerOtmf to (current application's NSXMLNode's attributeWithName:"o-tmf" stringValue:"Microsoft Excel")
set headerSegtype to (current application's NSXMLNode's attributeWithName:"segtype" stringValue:"paragraph")
set headerCreationDate to (current application's NSXMLNode's attributeWithName:"creationdate" stringValue:myDateString)
(tmxHeader's addAttribute:headerCreationTool)
(tmxHeader's addAttribute:headerCreationToolVersion)
(tmxHeader's addAttribute:headerSrcLang)
(tmxHeader's addAttribute:headerAdminLang)
(tmxHeader's addAttribute:headerDatatype)
(tmxHeader's addAttribute:headerOtmf)
(tmxHeader's addAttribute:headerSegtype)
(tmxHeader's addAttribute:headerCreationDate)