added <text macro="title"/> to "substitute-title" macro