title: Logging with XSLT
body: <p>How and where could I <strong>output log messages for debug and performance purposes</strong> during an XSLT transformation?</p>
  
  <p>I guess the simplest method is using expressions like this:</p>
  
  <pre><code>&lt;xsl:text&gt;message text&lt;/xsl:text&gt;
  </code></pre>
  
  <p>here and there in the code, using <code>xsl:value-of</code> if needed.</p>
  
  <p>But this method prints the messages in a lot of places in the output file (HTML page in my case), that is where it is called, and not always in the same place (like a log file).</p>
  
  <p>Is this the only way or <strong>is there a better solution?</strong> Thanks!</p>