title: Getting Variable values out of and XSLT file
body: <p>I wanted to find out if there is a way of getting a parameter or variable value out of an XSL file. For example, if I have the following:</p>
  
  <pre><code>&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt;
    &lt;xsl:variable name="username" select ="usertest"/&gt;
    &lt;xsl:variable name="password" select ="pass"/&gt;
    &lt;!-- ... --&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>I would like to read the <code>username</code> and <code>password</code> values from the XSL and use them for authentication.  I am using ASP.Net and C# to perform the actual transform on an XML file.  </p>
  
  <p>Could someone please share code with me that would allow me to read the XSL variables from ASP.NET/C#.  Thanks in advance for the help.</p>