Well I did remove the joomla code but did otherwise than suggested in other threads. I put the following xml declaration to the template and voila. All worked like out of the box.
More