Sorry. Nowhere in what you quoted from Trent does it say that "only the sacrament gets us to heaven." It says that the Sacrament of Baptism is necessary for salvation.
The word "salvation" can mean salvation from eternal Hell, but with a detour through Purgatory first. Or it can mean salvation from all punishment in the afterlife, meaning no Purgatory. I believe that Canon V is using "salvation" in the second sense. Trent does not specify, so we just don't know from Canon V itself, which sense was intended.
You grossly misdefined salvation earlier and now you're telling us what the term means?
All Trent says is that there can be no justification without the Sacrament and the intention to receive it. There's actually a CANON in Trent that anathematizes the proposition that the Sacrament justifies even someone who receives it unwillingly. You can claim that this means without the Sacrament or at least the intention to receive it, but that is not evident from the text. Trent could have used the same expression it did for Confession, "vel saltem" (or at least by, with the non-disjunctive "or", vel), Trent could have phrased it positively that someone CAN be justified by the Sacrament or the intention to receive it, but the "cannot without" phraseology speaks to necessary cause rather than sufficient cause.
There's a huge difference between "can with" and "cannot without", the first one speaking to sufficient cause, the latter to necessary cause.
"I can do A with B." B suffices to do A.
"I cannot do A without B." I might need other things as well, and B by itself doesn't necessarily suffice.