It is doable - you first need to create a new C1 Function that expose the value of PageRenderer.RenderingReason and then include this in your XSLT. Your new function you can make as a C# Function.
See http://docs.composite.net/Functions/Orckestra-CMS-API/Rendering-Reason for more info on RenderingReason.
See http://docs.composite.net/Functions/Orckestra-CMS-API/Rendering-Reason for more info on RenderingReason.