title: How do I profile and optimize an XSLT?
body: <p>I have an XSLT for viewing XML files in the browser.  The XSLT is naively written and currently takes a long time to execute (several minutes).</p>
  
  <p>My XML file is of modest size (~1 MiB), and other XSLTs for the same document that do different processing execute much more quickly.  So I know it isn't the size of the XML that is the problem, it's my XSLT.</p>
  
  <p>How do I go about profiling and optimizing my XSLT?</p>
  
  <p>(Is it a bad idea to be doing complex XSLTs in the browser?  Should I instead apply the XSLT application side?)</p>