&hd_attributes;
&type_code_attributes;
&facility_data;

is the problem... because you're reading it through a stream, it's not able to read the external files and expand out the entities into their proper format. eeeeh..... on the other hand.... check out the other three files you're referencing... the problem may be in there...

-tg