DOH! Were generating <link rel="" name=""> instead of <link rel="" href="">.