A German court found that the attacker, now age 20, had traveled more than 100 miles to stab a Spanish tourist, who survived.