You can debug XSL transforms by enabling "Debug" mode. Once enabled, the Storefront will start recording the XML input in the DNN's Event Viewer. You can then copy the XML input data into your XSL editor and run the test to see the output you expect. Please see Log Level for more information on how to enable debug mode.