Upvote:2
Flights between two airports in different Schengen countries are domestic flights within the Schengen area. That means flying Edmonton - Frankfurt - Warsaw - Lviv means you enter the Schengen area in Frankfurt and leave it in Warsaw. How you move between Frankfurt and Warsaw doesn't matter all that much.
You would not be in transit.