You can't transform a path element so had to add both path's to a group (<g>) element.