It's from a song book called '101 Scottish Songs' selected by Norman Buchan published in 1962. I definitely lean towards the doggerel camp as far as these lyrics are concerned, only the naming of those that lost their life save it from irredeemable and terminal maudlin-ness. Corrections are fine thanks. Giok