With the visit to Osaka Castle
with the visit는 전치사구
그리고 그 뒤에
to Osaka Castle은 visit를 수식하는 전치사구
즉 이 표현에서 분사는 없습니다
그러므로 분사구문이 아닙니다.
with the visit ended in failure.
과 같이 ended in failure과 같은 분사가 있어야
with 분사구문입니다.
도움이 되었기 바랍니다.