It IS confusing describing them both ways, maybe it's a NA or USA thing? I've only known it to refer to the crank orientation, I'm not sure basing it on which way cylinders point can be consistent? But many subscribe to that way, including some marketing departments apparently. Let's try some examples.
Parallel Twin such as Tenere' 700 would be transverse. Cylinders point up but are side to side left to right with crank oriented sideways left to right.
Upright triple such as Triumph triple or old Trident would be transverse same as above.
Longitudinal triple such as BMW K75. Cylinders in line front to back point to the left side 90* from vertical, with crank oriented front to back or longitudinal.
Longitudinal flat 6 such as Goldwing 1800, same as K75 above only 3 cylinders both left
and right, crank front to back.
BMW R100 one cylinder left one right, longitudinal 180* boxer with longitudinal crank.
Moto Guzzi same as R100 only each cylinder raised up 45*, longitudinal V-twin.
Harley Davidson 45* V-twin. Cylinders point forward and rearward with crank sideways so a transverse V-twin.
ST1100 In line V-4. Cylinder banks 90* apart, two point left and two to the right. Crank in line front to back so longitudinal V4.
VFR 800 transverse V4. Cylinder banks again 90* apart but two point forward and two rearward with crank side to side or transverse.
Suzuki DR650 transverse single. Single cylinder points up with the crankshaft left to right or transverse.
BMW R27 longitudinal single. Single cylinder points up with crankshaft oriented front to back or longitudinal.
From
https://www.motorcycle.com/ask-mo-anything/transverse-longitudinal-crankshafts.html
....
what’s the difference between a transverse V-Twin and a longitudinal one, and what are the advantages of each?
Any engine, be it a V-Twin, V-Four, or inline-Four, is considered to be “transverse” if its crankshaft lies perpendicular to the motorcycle’s wheels, i.e. across the frame, parallel to the axles. Most motorcycles have transversely mounted cranks, including all Harley-Davidson V-Twins, nearly all four-cylinder sportbikes like the Yamaha R1, Kawasaki ZX-10R, Aprilia RSV4, all Ducati V-Twins and V-Fours…
Now back to the V100 Stelvio with its longitudinal 90* V-twin

. Or transverse if you prefer. After following the new R1300GS I'm looking forward to the Stelvio hoping it's a little less complex and less cost. The V100 drivetrain seems to have been trouble free during its first year. The engine makes nice power, especially compared to my V85TT! I need to look into what maintenance will consist of specifically how often and what's involved for valve lash checks. I recall someone saying the cams need to be removed and re-timed just to change shims which sounds expensive. But if it seldom needs done.....