Boy, 14, caught in sword attack on way to school died of head trauma, court told